database - Convert like America/New_York in MySQL server 2008 R2 server -
13:30:00 friday april 19, 2013 in america/new_york converts 09:30:00 friday april 19, 2013 in america/anchorage
convert in sql server 2008 r2.
using select query.
please me on this.
thanks,
we convert in java wright "america/new_york" america/anchorage way need select query convert est time other time zones..please not time zone cannot given met,gmt , all...
please note:- time zones plain text america/anchorage
you looking function:
convert_tz(dt,from_tz,to_tz)
convert_tz() converts datetime value dt time zone given from_tz time zone given to_tz , returns resulting value. time zones specified described in section 10.6, “mysql server time zone support”. function returns null if arguments invalid.
https://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html#function_convert-tz
Comments
Post a Comment