User Tools

Site Tools


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: 2023/02/13 14:52 by 127.0.0.1