Always use the column type for what you need; if you use date, use DATETIME
; if it's a timestamp, use TIMESTAMP
, etc.
Depending on what you encode, all data formatting can be done on the actual page in any language that you use.
Alternatively, you can use MySQL functions such as NOW()
instead of using language versions and then store them in a database.
source share