Re: Subtract 1 month from date
Re: Subtract 1 month from date
- Subject: Re: Subtract 1 month from date
- From: kai <email@hidden>
- Date: Thu, 9 Dec 2004 21:30:26 +0000
On Thu, 9 Dec 2004 16:04:20 +0000, Nigel Garvey wrote:
kai wrote on Thu, 9 Dec 2004 04:45:38 +0000:
[snip]
((b - 2500000 - d) div -2500000 as string) ¬
& "/1/" & d's year
[snip]
Neat! Hard-wiring the "/1/" into the handler. :-) With that, the rest
can be done with just one line:
tell (current date) to set searchrange to ¬
my firstOfMonthUS(it - day * days) & "..." & my
firstOfMonthUS(it)
Neat! Getting the previous month by subtracting day * days. :-)
---
kai
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden