• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Number of days since 1/1/0001
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Number of days since 1/1/0001


  • Subject: Number of days since 1/1/0001
  • From: ehsan saffari <email@hidden>
  • Date: Fri, 23 Nov 2001 16:54:33 -0600

Given any date, I need to figure out the number of days that have passed
since January 1, 0001, (730811 days for 23/11/2001)

This should be easy with a simple date subtraction but AS simply refuses
to accept a date with a year less than 1000.

set {dd, mm, yyyy} to {1,1,1}
set temp to date ("" & dd & "/" & mm & "/" & yyyy)
--> date "Monday, January 01, 2001 00:00:00" ^!*%^@

any ideas?

cheers
ehsan


  • Follow-Ups:
    • Re: Number of days since 1/1/0001
      • From: Matthew Smith <email@hidden>
  • Prev by Date: Re: Please explain this!? More....
  • Next by Date: Re: Number of days since 1/1/0001
  • Previous by thread: Akua Sweets: Puppet Menu
  • Next by thread: Re: Number of days since 1/1/0001
  • Index(es):
    • Date
    • Thread