Re: last day of the month of a date
Re: last day of the month of a date
- Subject: Re: last day of the month of a date
- From: "Mark J. Reed" <email@hidden>
- Date: Thu, 15 Dec 2005 11:20:10 -0500
On 12/15/05, Bernard Bernu <email@hidden> wrote:
> Thanks for this solution working on Tiger but not on Panther.
I was afraid of that. Nigel's solution works fine on Panther, though:
copy (current date) to d
set day of d to 32
(d - (day of d) * days)
The overflow rules seem somewhat inconsistent. If I'm allowed to set
the day to 32 and get a date in the next month, why can't I set the
day to 0 to get the last day of the previous month?
--
Mark J. Reed <email@hidden>
_______________________________________________
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