User Tools

Site Tools


Sidebar

dictionary:more:parsedate

Parse Date

The parse date command will attempt to turn a string into an AppleScript date using lower level system functions than those used by AppleScript if you just ask it to coerce the string to a date. It is possible that this will allow more divergence from the strict standard date formatting and still let you turn the text into a valid date object.

Pass the string as the default parameter.

Usage:

set myDate to parse date “5/3/2020”
dictionary/more/parsedate.txt · Last modified: 2020/04/27 13:21 by James Sentman