convert numeric string to date-time format

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
cyn
Forum Newbie
Posts: 3
Joined: Mon Jan 26, 2009 8:54 pm

convert numeric string to date-time format

Post 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?
User avatar
susrisha
Forum Contributor
Posts: 439
Joined: Thu Aug 07, 2008 11:43 pm
Location: Hyderabad India

Re: convert numeric string to date-time format

Post 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.
Post Reply