Metro

Dad who left baby daughter on subway platform dodges jail

The spaced-out dad who forgot his baby daughter on an East Harlem subway platform — leaving her there in her stroller and heading home — was spared a jail sentence Thursday after agreeing to some badly needed drug and parenting programs.

Josh Perez, 27, whose Facebook handle is “Tarzan Cannibus,” pleaded guilty in Manhattan Criminal Court to misdemeanor endangering the welfare of a child, along with one count of disorderly conduct, a violation.

Police sources have told The Post that they believe Perez was drunk, high or both when he absentmindedly abandoned the baby at 2:30 in the morning this past March, as he switched trains at 125th Street.

The dad was all the way back home in The Bronx when he finally remembered the kid.

If Perez completes drug and alcohol treatment, and finishes a “Friends 2 Father” parenting program, he can return to court in a year, withdraw his plea to the misdemeanor and be left with just the violation on his record.

But if he skips the programs or is rearrested, prosecutors can toss him in jail for up to a year on the misdemeanor.

It was unclear if he and his girlfriend still have custody of the baby girl, Idanis, who is just 7 months old.

Perez wouldn’t speak to a reporter after court; mom Vanessa Almodovar sobbed in response to a question about the child, who was rescued, unharmed, by a good Samaritan.