Jump to content

Recommended Posts

I am trying to sort my fields by Date (the date they were sold/closed). Issue: The way they have been inputting date isn't into a date field. I need them to be inserted into a date field (so they have a 0 in front of the 1 in January for instance so the Sort field will sort them properly). However, I can't get them to input it in the correct format without irritating my customer (making them input YYYY-mm-dd). They are used to inputing the date as m/d/Y - but the format required for Date cells is as you know Y/m/d. If I had it in that format I believe it would sort my fields correctly - but I can't get it to explode the cells correctly and input it into the Database correctly (if at all) ... The output I have figured out...but this input part is frustrating me ..to no end!

 

Help PHP Freaks! You are my only hope! :)

Thanks!

Seth

Link to comment
https://forums.phpfreaks.com/topic/187600-input-date-in-database/
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.