java - how to convert specified time in particular timezone? -
i living in india timezone ist when want fix meeting uk client put time in field 10 a.m 11 a.m. how convert in gmt0000 uk time zone?
basically have textfied enter time after inserted there 1 dropdown box containing available timezone when select uk timezone how convert process using java?
thanks in advance.. tell me solve issue.. note: don't want manually? cause of selection converted? task.. hope understand problem..
regards..
india time gmt + 5.30
. 10.00 -5.30
can consider gmt
time.
in java can this
dateformat df = new simpledateformat("hh:mm"); date dateist=df.parse("10:00"); // india time df.settimezone(timezone.gettimezone("gmt")); system.out.println(df.format(dateist));// uk time
Comments
Post a Comment