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.

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.