Hi all,
I apologize if this sounds like a stupid question, but...
The user wants all date display and entry fields to be in mm/dd/yyyy format. However, a MySQL date field is in yyy-mm-dd format.
So, the question is...
Is converting mm/dd/yyy to yyy-mm-dd using the STR_TO_DATE() function on insert and update statements and converting yyyy-mm-dd to mm/dd/yyy using the DATE_FORMAT() function on select statements the best place to convert or is it better to keep the date format yyy/mm/dd throughout the web application until it needs to be displayed and then converted to mm/dd/yyyy using javascript conversion functions?
It would seem to be more efficient (with less required conversions) to do it at the backend on the MySQL query statments than at the frontend.
thanks.