User Tools

Site Tools


dictionary:more:parsedate

This is an old revision of the document!


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.1587993712.txt.gz · Last modified: 2023/02/13 14:51 (external edit)