Re: str_to_date equivalent in PHP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





Well it does make sense if you leave in UK :-) . But I was asking about how to change a day/month/year formated date (or a date in any format I like) to mysql format. The basic problem is that I need to define the format that the date is in.

Sorry if I didn't make that clear before.


Why not use mktime() and date() along with a few substrings?

Thanks
Ash
www.ashleysheridan.co.uk


I know that this works (as a workaround) which gets me back to my initial question: Can I use date_create_from_format()??
Does this works the way I need (because I don't have PHP 5.3.0 to test it)?

http://www.php.net/manual/en/function.date-create-from-format.php

--
Thodoris


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux