• 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: Applescript-users Digest, Vol 2, Issue 177
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Time Stamp String
  • Next by Date: Re: AppleScript feature request - encryption
  • Previous by thread: Re: list to a text representation of that list
  • Next by thread: Basic applescript and command line scripting issues
  • Index(es):
    • Date
    • Thread