Jump to content

From Varchar to Date format


jeeva

Recommended Posts

hi frnds,

 

i am having one problem with mysql.Previously i have created one Date field as varchar format.Now i want change that field as date fromat and also the data should be there as date format whatever i have stored previously.

 

i tried to change this but i couldn't get it changed....

 

can i get this?

 

thanks in advance...

 

jeeva

Link to comment
https://forums.phpfreaks.com/topic/67183-from-varchar-to-date-format/
Share on other sites

For jitesh:

        No its not working....

        its give the error like "Incorrect date value: '9-4-2007' for column 'ReqDate' at row 1"

 

For Xyn:

        Previously i have stored data as dd-mm-yyyy with Varchar datatype

        i want change the field as Date datatype without data lose

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.