This is a discussion on "Date Diff Help" within the Classic ASP section. This forum, and the thread "Date Diff Help are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Date Diff Help
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Date Diff Help
This may have been answered, but my problem is pretty specific....
I know to use the DateDiff function to get the difference between two times, but my problem lies with times falling on the day in question and then the following day ie 5:48pm - 1:12am this gives me negative values for hours and minutes... is there anyway I can use the function to automatically detect that we have gone over hte midnight barrier and display the correct figures? Cheers in advance... Neil |
|
|
|
|||
|
Ah ignore me, sorted it now :P
|
|
||||
|
I was going to suggest using the datediff function on the entire datetime rather than just the time...
But anyway.... knowing you, you've probabally bodged it. :wink:
__________________
Rob - SEO Specialist Owner & Founder of Webforumz.com I am currently unavailable for private work
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
![]() |
| Tags |
| date, diff, help |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Testing on diff. sized screens | lmc148 | Web Page Design | 4 | Jun 7th, 2008 13:24 |
| Displaying diff info on the same page | waheeddin | Web Page Design | 1 | Feb 23rd, 2007 19:56 |
| Changing date format in date picker | AdRock | JavaScript Forum | 1 | Aug 1st, 2006 17:16 |
| Rollover Images in diff cells | efreeti | Web Page Design | 6 | Jun 16th, 2006 14:04 |
| diff. external mc question | master_phat | Flash & Multimedia Forum | 2 | Apr 30th, 2005 19:01 |