A Brooklyn father is going to prison after admitting Friday to getting off a Long Island Rail Road train at Hicksville in the middle of the night, leaving his 3-year-old son and 14-month-old daughter on board.

Gerard Hatch, 48, pleaded guilty to one count of endangering the welfare of a child. District Court Judge David McAndrews sentenced him to five months in prison.

Hatch appeared intoxicated to witnesses and police, prosecutors said.

His children were not harmed in the April 20 incident, which happened shortly before 4:30 a.m.

Prosecutors said Hatch has an extensive criminal record, and has served jail time for criminal contempt, third-degree assault, disorderly conduct and other crimes.

He was represented by the Nassau County Legal Aid Society, which does not comment on individual cases.

Future of Kings Park Psychiatric Center? ... Weekend weather forecast ... FeedMe: Veggie dishes in Bethpage Credit: Newsday

Ex-doc hasn't paid dime of sex abuse settlement ... Former parks chief sues ... Giants/Saints preview ... Weekend weather forecast

Future of Kings Park Psychiatric Center? ... Weekend weather forecast ... FeedMe: Veggie dishes in Bethpage Credit: Newsday

Ex-doc hasn't paid dime of sex abuse settlement ... Former parks chief sues ... Giants/Saints preview ... Weekend weather forecast

Subscribe

Unlimited Digital AccessOnly 25¢for 6 months

SUBSCRIBESALE ENDS SOON | CANCEL ANYTIME