Page 1 of 1

convert numeric string to date-time format

Posted: Mon Feb 16, 2009 11:31 pm
by cyn
how can i convert a numeric string [ex. 0903170700 -- (yymmddhhii) ] into a date-time group format so that i would be able to subtract 5 days from it?

Re: convert numeric string to date-time format

Posted: Mon Feb 16, 2009 11:40 pm
by susrisha
try and read date and time documentations in php.net http://in2.php.net/date
to convert your date into time, strtotime is one such function you can use.