Re: Some date math
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.