SURESHKUMAR.NET FORUMS
Registered Member Login:
Not a member? Register today!



Welcome to the SURESHKUMAR.NET FORUMS.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.




need help for handling dates [urgent]

        

Reply
 
LinkBack Thread Tools 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
Rep Power: 3 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 Offline   Reply With Quote
Old 06-02-08, 06:48 PM   #2 (permalink)
Super Moderator
 
sk_kireeti's Avatar
 
Join Date: Feb 2006
Posts: 2,376
Blog Entries: 4
Thanks: 118
Thanked 326 Times in 238 Posts
Rep Power: 62 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
sk_kireeti is offline Offline   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
Rep Power: 3 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 Offline   Reply With Quote
Reply

Tags
dates , handling , urgent


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

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 compare dates in javascript? balasri1984 Ask for Suggestion 5 12-01-10 05:50 PM
How to find days between two dates in java? raghuvamshi_ece JAVA Technologies 4 18-10-07 04:30 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 04:55 AM.

More Interview Questions Here...

Content Relevant URLs by vBSEO 3.3.2