Forums.Sureshkumar.net : A Perfect Place to Share Knowledge         Blogs     Games    Magazines    

"Sharing knowledge does not lessen your store, often it gets you more. Sharing plays a key role in relationships and bonding, happens in small steps and is assisted through community membership."

Go Back   SURESHKUMAR.NET FORUMS > TECHNICAL DISCUSSIONS > JAVA Technologies
Register FAQ Members List Calendar Games Blogs Search Today's Posts Mark Forums Read

   

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 06-02-08, 05:31 PM   #1 (permalink)
Junior Member
 
Join Date: Feb 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 1 jivangoyal is on a distinguished road
Question need help for handling dates [urgent]

I've a project where need to store date of some event in specific format "mm/dd/yyyy hh:mm:ss" and then access these dates to compare it with the current datetime to get the difference between datetime stored and now.

for this purpose I need
1) How to get the current datetime in the needed format
2) How to compare the stored datetime string with the current datetime to calculate the minutes expired from the stored datetime to now.
jivangoyal is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-02-08, 06:48 PM   #2 (permalink)
Super Moderator
 
sk_kireeti's Avatar
 
Join Date: Feb 2006
Location: Hyderabad
Posts: 2,355
Thanks: 117
Thanked 241 Times in 198 Posts
Thanks: 117
Thanked 241 Times in 198 Posts
Blog Entries: 4
Rep Power: 51 sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute sk_kireeti has a reputation beyond repute
Re: need help for handling dates [urgent]

are you using DB to store date? If you are using Oracle DB, you can directly do it at DB server and Oracle has functions for that... no need to code it. Otherwise, you can refer to asktom.com for Oracle based solution.

Thanks,
Krishna
__________________
Give 1 cup rice to a hungry Indian just by a mouse click. No money, no form filling, no hassle... Click here for the donation.
sk_kireeti is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-02-08, 07:17 PM   #3 (permalink)
Junior Member
 
Join Date: Feb 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 1 jivangoyal is on a distinguished road
Question Re: need help for handling dates [urgent]

I'm using the ASCII text file to store and retrieve the information. in this file a complete string of information is stored in addition to date. and I need to use this stored date for various operations specified. I'm retrieving this date string with split function
jivangoyal is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to find days between two dates in java? raghuvamshi_ece JAVA Technologies 4 18-10-07 05:30 PM
How to compare dates in javascript? balasri1984 Ask for Suggestion 3 07-02-07 06:53 PM
Sql - Which date function is used to find the difference between two dates? radhika_btech Oracle Interview / Technical Questions 1 26-01-07 03:44 PM
Comparing two dates skhyd JAVA Technologies 2 15-01-07 12:17 PM


All times are GMT +6.5. The time now is 03:19 AM.





Search Engine Optimization by vBSEO 3.1.0