• 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: Can't Coerce String to Date?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't Coerce String to Date?


  • Subject: Re: Can't Coerce String to Date?
  • From: Alex Hall <email@hidden>
  • Date: Fri, 13 Mar 2015 15:34:46 -0400


On Mar 13, 2015, at 3:22 PM, Stockly, Ed <email@hidden> wrote:


From what I read, AppleScript will accept any string, like "06/11/2000" or "1 1 13" and figure it out. Interpretation comes from the user's settings (that is, if the day or month is the first number) but the date object *should* result either way. Is this no longer the case?

Yes, that changed a while back. Had to rewrite a bunch of scripts as a result.
Ah, that explains a lot then. That's very annoying, but I guess locale settings were the reason? Hard to distribute a script when you might have dates in America being April 1 and in the UK being January 4.


--
Have a great day,
Alex Hall
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:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Can't Coerce String to Date? (From: Alex Hall <email@hidden>)
 >Re: Can't Coerce String to Date? (From: Yvan KOENIG <email@hidden>)
 >Re: Can't Coerce String to Date? (From: Alex Hall <email@hidden>)
 >Re: Can't Coerce String to Date? (From: "Stockly, Ed" <email@hidden>)

  • Prev by Date: Re: Can't Coerce String to Date?
  • Next by Date: Re: Can't Coerce String to Date?
  • Previous by thread: Re: Can't Coerce String to Date?
  • Next by thread: Re: Can't Coerce String to Date?
  • Index(es):
    • Date
    • Thread