This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

about dates

 
volsteni raj
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how can i find difference between two dates?

how can i store date object in oracle database
 
Carol Enderlin
drifter
Ranch Hand
Posts: 1364
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For the first question, check this thread that just discussed dates.

Second question: jdbc
[ January 27, 2005: Message edited by: Carol Enderlin ]
 
vinod kumar
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The defference between two dates(two Date objects) u can findout by first getting the defference of milliseconds between the dates

long defferenceInMilliSeconds=Date1.getTime()-Date2.getTime();

you can convert this defference to hours or days as u want
for the second qst u can use JDBC
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic