• 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: last day of the month of a date
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: last day of the month of a date


  • Subject: Re: last day of the month of a date
  • From: Michelle Steiner <email@hidden>
  • Date: Wed, 14 Dec 2005 17:25:06 -0700

On Dec 14, 2005, at 4:58 PM, Bernard Bernu wrote:

I'd like to get the last day of the month of a date, say current date.


The following script will need a little tweaking to account for leap year:

set daylist to {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}
set adate to (current date)
copy adate to newdate
set day of newdate to item (month of newdate as integer) of daylist 
newdate

-- Michelle

-- 
We're not human beings having a spiritual experience.  
We're spiritual beings having a human experience.

 _______________________________________________
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

References: 
 >last day of the month of a date (From: Bernard Bernu <email@hidden>)

  • Prev by Date: last day of the month of a date
  • Next by Date: Re: last day of the month of a date
  • Previous by thread: last day of the month of a date
  • Next by thread: Re: last day of the month of a date
  • Index(es):
    • Date
    • Thread