date conversion into unixtime

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
User avatar
orangeapple
Forum Commoner
Posts: 70
Joined: Tue Jan 06, 2004 1:24 pm
Location: Geneva / Switzerland

date conversion into unixtime

Post by orangeapple »

Hi guys,

How can I convert this date format :

Sun 17th Apr 2005 05:53 pm

in unixtime ?

thanks a lot for your help !
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

Code: Select all

echo strtotime('Sun 17th Apr 2005 05:53 pm');
strtotime().. what a wonderful function
User avatar
orangeapple
Forum Commoner
Posts: 70
Joined: Tue Jan 06, 2004 1:24 pm
Location: Geneva / Switzerland

Post by orangeapple »

thanks a lot jcart !
Post Reply