In Java what is the accepted method for determining daylight savings time for any given Date object for a certain locale.
For example if you had two date Objects
Date date = new Date("01/01/2014");
Date date2 = new Date("01/07/2014");
And the locale was "Europe/London", 'date' should return GMT and date2 should return "BST"
String timeZone = new String("Europe/London");
TimeZone tz = TimeZone.getTimeZone(timeZone);
System.out.println(tz.getDisplayName(tz.inDaylightTime(date),
TimeZone.SHORT));
TimeZone tz2 = TimeZone.getTimeZone(timeZone);
System.out.println(tz2.getDisplayName(tz2.inDaylightTime(date2),
TimeZone.SHORT));
Both these examples print GMT, shouldn't the second print BST?
I think your dates are both not in daylight saving time, the pattern is mm/dd/yyyy, so your dates are 1st jan 2014 and 7th jan 2014. By the way: The constructor you use is deprecated!
This should give you a hint. At least you know if the date is in daylight saving time, how this time is called is a second problem, I don't think it's resolveable with standard-API. Have you tried looking at http://www.joda.org/joda-time/? It's an API for DateTime calculations.