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:

  1. store timezone in separate field (additional table column), preferred way
  2. store date, time , timezone varchar, make sql queries based on date , time harder , slower.

Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -