Java simple data format british time

Posted by DD on Stack Overflow See other posts from Stack Overflow or by DD
Published on 2010-06-03T11:59:41Z Indexed on 2010/06/03 12:04 UTC
Read the original article Hit count: 253

Filed under:
|

Hi, I am using simple date format to allow users to specify which time zone they are sending data in:

DateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss,z");

This works fine: e.g.

df.parse("2009-05-16 11:07:41,GMT");

However, if someone is always sending time in London time (i.e. taking into account daylight savings), what would be the approriate time zone String to add? e.g. this doesnt work:

df.parse("2009-05-16 11:07:41,Europe/London");  

Thanks.

© Stack Overflow or respective owner

Related posts about java

Related posts about datetime