Storing timezone in mysql date format -
i want store current timezone in mysql date datatype. example,
10-apr-2014 10:12:41 ist
what want is: date_format('10-apr-2014 10:12:41 ist','%d-%b-%y %h:%i:%s **timezone**')
i searched date_format , str_to_date formats didn't find mention of timezone.
is there way able this?? want ist appear @ end of date , time! please help!
mysql not have dedicated data type storing timezone information.
you have choice of either:
- store timezone in separate field (additional table column), preferred way
- store date, time , timezone varchar, make sql queries based on date , time harder , slower.
Comments
Post a Comment