Re: Date Format?

From: Date: Wed, 29 Nov 2000 17:24:34 +0000
Subject: Re: Date Format?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-27842@lists.php.net to get a copy of this message
$today = date("Ymd"); will produce something like 20001129 the datatype in mysql should be set to date dates are inputed as shown above i.e year month day check the manual http://www.php.net/manual/function.date.php ----- Original Message ----- From: Wee Chua <Chua@mail.interclean.com> To: PHP (E-mail) <php-general@lists.php.net>; MySQL (E-mail) <mysql@lists.mysql.com> Sent: Wednesday, November 29, 2000 5:01 PM Subject: [PHP] Date Format? > Hi all, > I would like to insert the current date into the date datatype field. How > could I format the Now() into the correct format of date datatype? I would > like to find the way to do it PHP and MySQL. Thanks in advance for any > helps. > > Calvin Chua > Systems Analyst > InterClean Equipment, Inc. > 734-975-2967 > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#27842) next »