Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what's the difference?

 
zb cong
Ranch Hand
Posts: 416
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello
i don't know the difference between the "java.sql.Data" and "java.util.Date",i mean how can i decide when i use which?
thank you!
 
Pete Lyons
Ranch Hand
Posts: 109
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use java.util.Date for most of your normal programming needs. java.sql.Date is part of JDBC and involved with databases, etc.
 
zb cong
Ranch Hand
Posts: 416
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for your helps
could you tell me how the "java.sql.Date" involve with database?
for example,i can use the "java.sql.Date" to receive the oracle Date type field,but "java.sql.Date" can't.
 
zb cong
Ranch Hand
Posts: 416
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
or sorry,my typing mistake.
i can use the "java.util.Date" to receive the oracle Date type field,but "java.sql.Date" can't.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic