Language Guide

CHAPTER 3
Values
Value Class Denitions 47
REFERENCE FORMS
You can refer to properties of a Date value using the Property reference form.
weekday of date "May 3, 1993"
--result: Monday
time of date "May 3, 1993"
--result: "12:00 AM"
Note that AppleScript fills in a default time property for the date specified in
the second example.
If you want to specify a time relative to a date, you can do so as follows:
date "2:30 am" of date "May 3, 1993"
--result: date "May 3, 1993 2:30 AM"
date "Sept. 27, 1993" relative to date "3PM"
--result: date "September 27, 1993 3:00 PM"
In addition to of, you can also use the synonyms relative to or in for
this purpose.
COERCIONS SUPPORTED
AppleScript supports coercion of a Date value to a single-item list or a string.
NOTES
Regardless of the format you use when you type a date in a script, AppleScript
always displays Date values in the format shown in the following example,
which includes the full name of the day of the week and month and no leading
zeros for the date.
date "Sunday, January 3, 1992 12:05 PM"
If you don’t specify a complete date, day, and time when typing a Date value,
AppleScript fills in information as needed. If you don’t specify the date
information, AppleScript uses the date when the script is compiled. If you