Date, Time and Period Formats in Scripts

Some script statements and functions let you specify formats for date, time and periods.

This page includes the following:

Tip: You can use script functions to convert date, time and period formats. For more information, see Script Date and Time Functions.

Note: Some predefined variables have specific requirements for supported date and time formats. For more information, see Date and Time Formats Variable.

Date Formats

Use the following abbreviations in date formats:

The following date formats are permitted:

You can specify the following special terms for date formats:

Note: You cannot use special terms for date formats in script functions that calculate based on dates, except for output formats of a calculated date.

Time Formats

Use the following abbreviations for time formats:

The following time formats are permitted:

You can specify the following special terms for time formats:

Period Formats

Use the following abbreviations for period formats:

The following period formats are permitted:

You can use period formats in the following script elements:

See also:

seealso

Script Elements and Syntax

Working with the Script Editor

Variables and VARA Objects

Script Date and Time Functions