• 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: Coping with Date format variations
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Coping with Date format variations


  • Subject: Re: Coping with Date format variations
  • From: Luther Fuller <email@hidden>
  • Date: Mon, 24 May 2010 07:00:45 -0500

On May 23, 2010, at 11:57 PM, Shane Stanley wrote:

On 24/5/10 2:15 PM, "Michelle Steiner" <email@hidden> wrote:

set foo to current date
set {month of foo, day of foo, year of foo, time of foo} to {October, 31,
2015, 0}
foo

That's still potentially going to get the wrong result. For example:

set foo to current date
set {month of foo, day of foo, year of foo, time of foo} to {October, 31,
2015, 0}
log foo -- OK
set {month of foo, day of foo, year of foo, time of foo} to {February, 8,
2015, 0}
log foo -- not OK

Better yet, do this ...

set foo to current date
set {day of foo, year of foo, time of foo, month of foo} to {31, 2015, 0, October}
log foo -- OK
set {day of foo, year of foo, time of foo, month of foo} to {8, 2015, 0, February}
log foo --  OK

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Coping with Date format variations
      • From: "Mark J. Reed" <email@hidden>
References: 
 >Re: Coping with Date format variations (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: Problems importing the unix mailbox into Mail.app
  • Next by Date: Re: Coping with Date format variations
  • Previous by thread: Re: Coping with Date format variations
  • Next by thread: Re: Coping with Date format variations
  • Index(es):
    • Date
    • Thread