|
Posted by Oli Filth on 06/04/05 16:22
Mikki said the following on 04/06/2005 13:12:
> What is the best way do recognize a date from a string and convert it
> to unix timestamp?
>
> Strtotime() function is working only with US dates (MM/DD/YYYY), I need
> something for European dates (DD/MM/YYYY).
>
Dunno if there's a specific PHP function that does this already.
However, just explode() the date string on "/", and then you'll have an
array with days, months, and years separate. Then you can use mktime()
to get the Unix timestamp.
--
Oli
Navigation:
[Reply to this message]
|