Jump to content

Date Format is 12-Dec-2008 need to save as 2008-12-12


vinoindiamca

Recommended Posts

You can use the mysql STR_TO_DATE() function directly in your query string to format any date into a standard DATE data type -

http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html#function_str-to-date

 

Hi

insert into booking values(NULL,'fghfg','hgfhgf','hfgh','05-Dec-2002','27-Dec-2008',1,'dfg','gdfg','dfgfgfgdfgdfg','dfgdf',2)

 

How to Format date from 05-Dec-2002 to 2002-12-05

 

please help in this

 

STR_TO_DATE() is Not Working in insert query please

use it in my query

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.