I thought that the followinging code: TimeZone tz = TimeZone.getTimeZone("GMT+1");Locale loc = new Locale("Locale.GERMAN","Locale.GERMANY");Calendar rightNow = Calendar.getInstance(tz,loc); java.util.Date date = rightNow.getTime(); DateFormat df = DateFormat.getDateTimeInstance(DateFormat.LONG,DateFormat.LONG); String timest = df.format(date); ALWAYS will generate a German locale date/time.
It doesn't. It generates the date/time of where the server machine is
situated.
Why?
-dan
|
- Re: German Date dan
- Re: German Date Dr. Dragomir D. Dimitrijevic
