Still problems displaying the date and time in J2ME
Posted on 2007-08-01
I have tried to display the correct date time using the following code:
Date today = new Date(System.currentTimeMillis());
DateField datefield = new DateField("", DateField.DATE_TIME);
The date is correct but for the time it give me 3 hours more than actual one.
I am using the Sun Java Wirelles Toolkit to do this. J2ME