Re: Applescript-users Digest, Vol 2, Issue 177
Re: Applescript-users Digest, Vol 2, Issue 177
- Subject: Re: Applescript-users Digest, Vol 2, Issue 177
- From: "Marc K. Myers" <email@hidden>
- Date: Tue, 15 Mar 2005 23:32:57 -0500
On Mar 15, 2005, at 3:01 PM, Bernardo Hoehl <email@hidden> wrote:
Hi List,
This is a simple one:
How do I get the last day of the current month?
Example: february 2005 = 28 or March =31
set cDate to (current date)
repeat with i from 31 to 28 by -1
try
set dText to ((month of cDate) as number as text) & "/" & i & ¬
"/" & year of cDate
set x to date dText
exit repeat
end try
end repeat
day of x
Marc [3/15/05 11:32:25 PM]
_______________________________________________
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