• 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: "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

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>)
 >Re: last day of the month of a date (From: Bernard Bernu <email@hidden>)

  • Prev by Date: Re: Set hours of date = stack overflow error on 10.3.9?
  • 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