PC Review


Reply
Thread Tools Rate Thread

Calculating the difference between 2 dates and times

 
 
Dom
Guest
Posts: n/a
 
      12th Dec 2007
I am wanting to figure out the difference between 2 dates ie the difference
in time between 12/09/2007 11:09 and 12/12/2007 15:19 so it will basically
show how long it has been overdue if that makes sense. I want to show it in
month:date:hours.

Basically the first date is to show when something should have been
completed and the other date is todays date, so it is to show how overdue the
order is!!!

Hope that all makes sense
Please help

 
Reply With Quote
 
 
 
 
David Biddulph
Guest
Posts: n/a
 
      12th Dec 2007
=DATEDIF(A1,A2,"m")&" months "&DATEDIF(A1,A2,"md")&" days
"&TEXT(MOD(A2-A1,1),"h")&" hours"
or adjust to suit your desired output format.
--
David Biddulph

"Dom" <(E-Mail Removed)> wrote in message
news:147AF715-6281-4F9E-9A3F-(E-Mail Removed)...
>I am wanting to figure out the difference between 2 dates ie the difference
> in time between 12/09/2007 11:09 and 12/12/2007 15:19 so it will basically
> show how long it has been overdue if that makes sense. I want to show it
> in
> month:date:hours.
>
> Basically the first date is to show when something should have been
> completed and the other date is todays date, so it is to show how overdue
> the
> order is!!!
>
> Hope that all makes sense
> Please help
>



 
Reply With Quote
 
Dom
Guest
Posts: n/a
 
      12th Dec 2007
Thank you for your help that has worked perfectly

: )

"David Biddulph" wrote:

> =DATEDIF(A1,A2,"m")&" months "&DATEDIF(A1,A2,"md")&" days
> "&TEXT(MOD(A2-A1,1),"h")&" hours"
> or adjust to suit your desired output format.
> --
> David Biddulph
>
> "Dom" <(E-Mail Removed)> wrote in message
> news:147AF715-6281-4F9E-9A3F-(E-Mail Removed)...
> >I am wanting to figure out the difference between 2 dates ie the difference
> > in time between 12/09/2007 11:09 and 12/12/2007 15:19 so it will basically
> > show how long it has been overdue if that makes sense. I want to show it
> > in
> > month:date:hours.
> >
> > Basically the first date is to show when something should have been
> > completed and the other date is todays date, so it is to show how overdue
> > the
> > order is!!!
> >
> > Hope that all makes sense
> > Please help
> >

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
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 Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculating the difference between two dates and times KARL DEWEY Microsoft Access Queries 7 12th Apr 2009 10:02 PM
Calculating difference between times on 2 dates bollard Microsoft Excel Worksheet Functions 4 10th Jun 2008 12:17 PM
Calculating the difference between two dates and times =?Utf-8?B?U2ltb24=?= Microsoft Access Queries 8 6th Apr 2006 03:23 PM
Calculating the Difference between two times/ dates =?Utf-8?B?U2ltb24=?= Microsoft Access Queries 4 22nd Mar 2006 05:04 PM
Q: Calculating difference in dates and times in datatables/datasets Geoff Jones Microsoft ADO .NET 1 1st Jul 2004 03:12 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:49 AM.