Re: str_to_date equivalent in PHP

From: Date: Tue, 28 Jul 2009 17:48:04 +0000
Subject: Re: str_to_date equivalent in PHP
References: 1 2 3 4 5 6  Groups: php.general 
Request: Send a blank email to php-general+get-295960@lists.php.net to get a copy of this message
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

« previous php.general (#295960) next »