• 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
Re: Some date math
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Some date math


  • Subject: Re: Some date math
  • From: Simon Brown <email@hidden>
  • Date: Tue, 25 Feb 2003 01:21:00 +0000

on 25/2/03 0:33, Michael Slomski at email@hidden wrote:
>
> Does anyone know how to get the date of yesterday.
> 3get current date2 will get the current day. Fine.
> 3get current date - 1 displays also the current date. So what can I do?

>
try any of the following:
(current date) - (1 * days)
(current date) - (24 * hours)
(current date) - (24 * 60 * minutes)

or to get the start of the previous day
date (date string of ((current date) - (1 * days)))

or to get just the date part (without hh:mm:ss):
date string of ((current date) - (1 * days))

HTH
-------------
Simon Brown
-------------
PPC 7500 + G3 card/OS z9.1 + Remote Access 4.02/CarbonLib 1.6/AppleScript
1.8.3/Smile 1.8.8
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Some date math (From: email@hidden (Michael Slomski))

  • Prev by Date: Re: Scripting Mail:get selection
  • Next by Date: Re: Archiving Mailbox contents
  • Previous by thread: Re: Some date math
  • Next by thread: Re: Some date math
  • Index(es):
    • Date
    • Thread