date parsing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Greetings all,

I am trying to find a function or a way to parse a date that has the following format 2005124 or 20051204.

When I have a date that has a single digit (ie month, day) all the date/time function seem to go bizarre.

When it is a full 8 digit string everything is fine.
When there are delimiters between year month day (ie 2005-4-23) everything is fine.

I tried strtotime(%Y/%m/%d, "2005124") and this is the result:
1970/01/23.

Any thoughts?

Thanks for the aid!!
Phil

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux