Always use standard Date / Time types for your situation.
In MySQL, use one of the appropriate Date and Time Type . Do not just blindly use one type. If you are storing a date, do not use a timestamp. If you keep the timestamp, do not use the date. Use the correct type and do it.
In PHP you can use an integer (sort out the mysql type with strtotime() .
Speaking to JS, I would suggest using the RFC 2822 date format as it is standard. This way you are interfacing using a standard date / time format (which is not ambiguous).
source share