Jump to content

converting input form date in mm/dd/yyyy to store in mysql date field


cgchris99

Recommended Posts

I have two entry fields for dates.  The values are stored as mm/dd/yyyy

The mysql fields are setup as DATE.  So right now, nothing gets stored in these fields in the DB.

 

I know I need to convert the input field to mysql format but this is where I get lost.  I've been looking all over the net trying to figure this out.  Even found a couple of functions like input2date() but these don't work or don't do what I want.

 

Thanks for any advice and sorry for the newbie question.

 

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.