Former police officer Daniel Hadley will apply to have his cocaine possession charge dealt with under mental health legislation, a court has heard.

Mr Hadley, 28, the son of radio presenter Ray Hadley, was arrested in August while off-duty at a hotel in Rouse Hill in Sydney's north-west and charged with possessing a prohibited drug.

Daniel Hadley was arrested after he was allegedly found with 0.66 grams of cocaine.

The senior constable, who was charged after an investigation by the police professional standards command, was suspended after his arrest. Last month, NSW Police confirmed he has resigned.

On Wednesday, solicitor Madeleine Walsh told Parramatta Local Court an application would be made to have the matter dealt with under section 32 of the Mental Health Act, under which the charge can be dismissed.