I have a string in php that is a date but is formatted: mddyy
The strtotime() function does not understand this. I know I could split it into an array and move stuff around as needed to get where I need but is there something that would be better? What is a good way to convert this to a php date?
The format my dates are in are variable length(could be 5 digits, could be 6) depending on the month.
12511 = January 25 2011
110511 = November 5 2011
I was able to get date_create_from_format to work by padding a 0 on the left.