Re: Dates

From: Date: Fri, 03 Oct 2003 17:57:25 +0000
Subject: Re: Dates
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-164941@lists.php.net to get a copy of this message
Ok, Mayve I need to be a little clear, I under the link below as showing dates. What I need to know how can I take the input of 09-12-1967 and have enter into a mysql data using php as 1967-09-12? Because everything that is past from my form to mysql is not the way it was enter. Would I need to create three fields month, day, year, then take those three into yyyy-mm-dd? If so how? Chuck Jay Blanchard wrote:
[snip] This might be mysql question but how can I change a US format date (mm/dd/yyyy) to a MySQL Format (yyyy/mm/dd). Can I do this will php or will need let say javascript or perl to do this? [/snip] date("y/m/d"); RTFM at http://www.php.net/date


« previous php.general (#164941) next »