Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Date datatype in Java

 
Rida Abrahams
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Which datatype do I use to store a date in Java? Is there a date datatype in Java to begin with.
Later.
Fathima Khan.
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are several. The class java.util.Calendar is a general date class; java.util.Date is a simple one. java.sql.Date is for use with the JDBC database API.
 
Rida Abrahams
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for helping me out.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic