Since I started programming in PHP.MySQL I have had a problem with date functions, this mostly due to a learning issue I have with numbers. I have never had any formal training and have had to rely on reading material that hasn't made a whole lot of sense to me. I have managed to get by, but probably do more work than is necessary.
Having said this, I am working on an invoice/appliance repair script which will have 3 dates in it, when the call came in, when it is scheduled to be fixed, and the completion date.
These dates may have to be searched on by a user using a web form. The user would enter something like 10/05/2011. There may also be MySQL queries on weeks, months, etc. Example, I need a query to find all the records from previous years.
So what would be the best way to store these in MySQL and what should the field type be, and what would be the best way to extract these into a human readable form.
I know this is a loaded question, but just reading documents about all these different date functions has just confused me more, so any help is appreciated.
Thanks, CR