Link to home
Start Free TrialLog in
Avatar of jonathan_otero
jonathan_otero

asked on

Still problems displaying the date and time in J2ME

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);
               
               datefield.setDate(today);
               
               form.append(datefield);

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
ASKER CERTIFIED SOLUTION
Avatar of doraemon-nolife
doraemon-nolife

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Forced accept.

Computer101
EE Admin