Java Date Class

Create java Date from specific time example

Want to learn quickly?
Try one of the many quizzes. More than Java 400 questions with detailed answers.

Add Comment

  • The time shown in the final comment is correct for GMT, but not EST. What you really will see on your console depends on what time zone you have your computers clock set to. For my CST location I got:

    Thu Dec 31 18:00:00 CST 1970

    because CST time figure is six hours behind GMT. You people on the east coast will see:

    Thu Dec 31 19:00:00 EST 1970

    which is -5 hours difference from GMT. It’s because even though we all share the same planet, we all want the Sun to rise in the same hour of “our” clock, no matter where we sleep 🙂


Facebook Fans