• 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
Conversion of ISO Date String to AppleScript Date
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Conversion of ISO Date String to AppleScript Date


  • Subject: Conversion of ISO Date String to AppleScript Date
  • From: Jim Underwood <email@hidden>
  • Date: Sat, 04 Mar 2017 05:08:19 +0000
  • Thread-topic: Conversion of ISO Date String to AppleScript Date

Could you guys please test this very simple script:


date ("2017-03-04 11:15:01")


(*

Some users in Europe report this works, returning:

-->date "Saturday, 4 March 2017 at 11:15:01"


It fails for me in the U.S.A., returning this error:

-->Invalid date and time date 2017-03-04 11:15:01 of «script».

*)




Please report if this works, or not, on your system, and the macOS you are running.

I am running macOS 10.11.6, and it has failed on two different Macs.

The point is how to convert an ISO date string to AppleScript date object.
What's your best method?

Thanks.

Best Regards,

 

Jim Underwood

aka JMichaelTX

 _______________________________________________
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: Conversion of ISO Date String to AppleScript Date
      • From: Christopher Stone <email@hidden>
    • Re: Conversion of ISO Date String to AppleScript Date
      • From: Steve Mills <email@hidden>
  • Prev by Date: Re: collectdata
  • Next by Date: Re: Conversion of ISO Date String to AppleScript Date
  • Previous by thread: Re: Does a NSURL Have a Valid Target
  • Next by thread: Re: Conversion of ISO Date String to AppleScript Date
  • Index(es):
    • Date
    • Thread