Page 1 of 1

string to unix timestamp

Posted: Fri May 19, 2006 7:08 am
by eyespark
Hi

I would like to convert a date in a format

Code: Select all

date("j.m.Y")
(for example 19.5.2006) to unix timestamp. How would I do that? Thanks

Posted: Fri May 19, 2006 7:17 am
by timvw

Posted: Fri May 19, 2006 7:38 am
by eyespark
Yeah, I was looking at that, but 19.5.2006 is not US English date format.

Posted: Fri May 19, 2006 7:56 am
by feyd
If you know the format explode() it, then use mktime().

Posted: Fri May 19, 2006 9:22 am
by eyespark
Thanks :D