Still problems displaying the date and time in J2ME

Posted on 2007-08-01
Medium Priority
Last Modified: 2013-11-24
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
Question by:jonathan_otero

Accepted Solution

doraemon-nolife earned 2000 total points
ID: 19613931
Please check the locale of your machine, you might not have selected your country as your locale reference.

Expert Comment

ID: 20143904
Forced accept.

EE Admin

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
Suggested Courses
Course of the Month14 days, 17 hours left to enroll

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question