Jump to content

Input Date in Database


Sethm

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

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.