• 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: Bernard Bernu <email@hidden>
  • Date: Thu, 15 Dec 2005 12:34:00 +0100


Le 15 déc. 05, à 03:59, Mark J. Reed a écrit :

Adding 31 doesn't necessarily get you next month; on January 29th or
later, it skips right over February to March, and the same thing
happens of today is the last day of March, May, August, or October.

This works for any date, at least on Tiger:

copy (current date) to d
set month of d to (month of d) + 1
set day of d to 1
(d - 1 * days)
Thanks for this solution working on Tiger but not on Panther.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden
Bernard

_______________________________________________
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


  • Follow-Ups:
    • Re: last day of the month of a date
      • From: "Mark J. Reed" <email@hidden>
References: 
 >last day of the month of a date (From: Bernard Bernu <email@hidden>)
 >Re: last day of the month of a date (From: deivy petrescu <email@hidden>)
 >Re: last day of the month of a date (From: deivy petrescu <email@hidden>)
 >Re: last day of the month of a date (From: "Mark J. Reed" <email@hidden>)

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