You are here: Re: Date recognition « All PHP « IT news, forums, messages
Re: Date recognition

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация