Inserting dates into MySQL database
hi
i'm using asp , mysql database develop site.
i have simple form stores name , date able
produce list sorted dates. @ moment have insert date in
text field in format yyyy-mm-dd.
as i'm based in uk, client wants dates enter dd-mm-yyyy
but cant seem mysql allow me input in format. other
submitting form page , changing date around before
inserting it, there way mysql recognise english date formats?
thanks
alex
i'm using asp , mysql database develop site.
i have simple form stores name , date able
produce list sorted dates. @ moment have insert date in
text field in format yyyy-mm-dd.
as i'm based in uk, client wants dates enter dd-mm-yyyy
but cant seem mysql allow me input in format. other
submitting form page , changing date around before
inserting it, there way mysql recognise english date formats?
thanks
alex
alex wood wrote:
> there way mysql recognise english date formats?
no. dates must stored in iso format.
you should use mysql date_format() function display dates in
format of choice. however, must enter dates in yyyy-mm-dd
format.
--
david powers, adobe community expert
author, "foundation php dreamweaver 8" (friends of ed)
author, "php solutions" (friends of ed)
http://foundationphp.com/
> there way mysql recognise english date formats?
no. dates must stored in iso format.
you should use mysql date_format() function display dates in
format of choice. however, must enter dates in yyyy-mm-dd
format.
--
david powers, adobe community expert
author, "foundation php dreamweaver 8" (friends of ed)
author, "php solutions" (friends of ed)
http://foundationphp.com/
More discussions in Dreamweaver support forum
adobe
Comments
Post a Comment