Win a copy of Functional Reactive Programming this week in the Other Languages 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