Hitachi

JP1 Version 11 JP1/Script Description and Reference (For Windows Systems)


8.4.5 Day (return the day for a specified date)

Purpose

Returns a one- or two-digit numeric in the range 1 to 31, representing the day of the specified date.

Syntax
Day ([Date])
Argument
Date

Write the date in yyyy/mm/dd format. Numbers specified in the range 0 to 69 in yyyy are read as 2000 to 2069.

If an invalid value is specified for mm, an error occurs. However, if an invalid value is specified for dd, no error occurs. Instead, the Day command replaces the specified date with the equivalent valid date and returns the result. For example, if 1999/12/33 (a nonexistent date) were specified, the Day command would replace the specified date with the valid date 2000/01/02 and would return 2.

This value is optional. If you omit this value, the current date is assumed.

Description

The Day command returns a one- or two-digit numeric in the range 1 to 31, representing the day of the specified date.

JP1/Script version

Supported from JP1/Script 01-00.