Results 1 to 9 of 9

Thread: Is there a site that calculates the number of days between 2 dates?

  1. #1
    Gold Member Marcos's Avatar
    Join Date
    Sep 2004
    Location
    England
    Posts
    4,119
    Thanks
    54
    Thanked
    26 times in 17 posts

    Is there a site that calculates the number of days between 2 dates?

    Or am i being thick and theres a simple way to work this out that i don't know yet?

  2. #2
    Ғо ѕніzzLє му піzzLє chicken's Avatar
    Join Date
    Nov 2005
    Location
    Kent
    Posts
    1,576
    Thanks
    28
    Thanked
    52 times in 43 posts
    Open Excel, type a date in cell A1, type another in cell A2, then in a third do "=A1-A2" if you have any problems make sure they are all set to "date" format. I'm pretty sure that will let you know... it's possible also to filter the results a bit more but you can google for that

  3. #3
    LWA
    LWA is offline
    Senior Member
    Join Date
    Jul 2003
    Location
    London
    Posts
    2,171
    Thanks
    134
    Thanked
    57 times in 41 posts
    If you have an Oracle database handy:

    select to_number(to_char(to_date('01-JAN-2007','DD-MON-YYYY'),'J'))-to_number(to_char(to_date('01-JAN-2006','DD-MON-YYYY'),'J'))
    from dual
    That code gives the number of days between 1st Jan 2006 and 1st Jan 2007.

    Perhaps that's overkill

  4. #4
    Member
    Join Date
    Oct 2003
    Posts
    3,041
    Thanks
    209
    Thanked
    146 times in 88 posts

  5. #5
    unapologetic apologist
    Join Date
    Nov 2005
    Location
    UK
    Posts
    1,954
    Thanks
    363
    Thanked
    274 times in 145 posts
    if using excel, you need the calc cell to be formatted NOT to date, but to GENERAL or one of the other number formats


    also, first cell must be the more recent date, otherwise get garbage. ie new date minus old date

  6. #6
    Gold Member Marcos's Avatar
    Join Date
    Sep 2004
    Location
    England
    Posts
    4,119
    Thanks
    54
    Thanked
    26 times in 17 posts
    Quote Originally Posted by Parm
    perfect!

  7. #7
    daft ideas inc. scottyman's Avatar
    Join Date
    Jul 2003
    Location
    Charming and Exotic Bracknell
    Posts
    1,576
    Thanks
    2
    Thanked
    3 times in 3 posts
    fuddam - there are date specific calc functions built into excel also, but you can cast the date to a numerical value.
    timeanddate.com is an excellent resource - their clock applets make life much easier!

  8. #8
    Sublime HEXUS.net
    Join Date
    Jul 2003
    Location
    The Void.. Floating
    Posts
    11,819
    Thanks
    213
    Thanked
    233 times in 160 posts
    • Stoo's system
      • Motherboard:
      • Mac Pro
      • CPU:
      • 2*Xeon 5450 @ 2.8GHz, 12MB Cache
      • Memory:
      • 32GB 1600MHz FBDIMM
      • Storage:
      • ~ 2.5TB + 4TB external array
      • Graphics card(s):
      • ATI Radeon HD 4870
      • Case:
      • Mac Pro
      • Operating System:
      • OS X 10.7
      • Monitor(s):
      • 24" Samsung 244T Black
      • Internet:
      • Zen Max Pro
    or you could just add up the days between the two dates
    (\__/)
    (='.'=)
    (")_(")

  9. #9
    LWA
    LWA is offline
    Senior Member
    Join Date
    Jul 2003
    Location
    London
    Posts
    2,171
    Thanks
    134
    Thanked
    57 times in 41 posts
    Quote Originally Posted by Stoo
    or you could just add up the days between the two dates
    Oh my god, what a crazy notion!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. #11 - The new number of the beast..?!
    By Spud1 in forum General Discussion
    Replies: 41
    Last Post: 09-05-2007, 05:18 PM
  2. Philips PU 51285 Automatic Scart Switcher
    By Nick in forum Reader Reviews
    Replies: 11
    Last Post: 20-03-2007, 09:35 PM
  3. Odd site showing up in my webstats
    By Gordy in forum Software
    Replies: 8
    Last Post: 30-04-2005, 11:08 AM
  4. Catalyst 5.3 Available Now
    By Steve in forum Graphics Cards
    Replies: 16
    Last Post: 15-03-2005, 12:46 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •