Reformat Custom Date in PHP

Dwerianiacent

New Member
So I know how to format a date in PHP, but not from a custom format. I have a date that is a string "YYMMDD" and I want to make it "MMDDYYYY'. strtotime doesn't seem like it would do a good job of this when the MM and DD are both low digits. What is the best way to do this?
 
Back
Top