beautypg.com

Date format – Measurement Computing Micro 488/EX rev.2.1 User Manual

Page 91

background image

Section 5

Command Descriptions

5.21

DATE FORMAT

The DATE FORMAT command allows the user to select the format of the DATE

command response. Several different formats are provide, including both American
and European. DATE FORMAT is also used to determine how the date information will
be interpreted when the date is set with the SET DATE command. Refer to the SET
DATE

command definition for more details. The month text can be sent as upper or

capitalized lower case, as determined by the CASE command.

The power-on factory default is MONTH DD, YYYY. This default can be

modified with the SAVE command. Refer to the SAVE command for details.

SYNTAX

DATE

FORMAT [;] {option}

option

includes at one of the following format specifiers…

option

Example Output

Length†

Style

MM/DD/YY

12/04/76

8 bytes fixed

American

MM-DD-YY

12-04-76

8 bytes fixed

American

MM/DD/YYYY

12/04/1976

10 bytes fixed

American

MM-DD-YYYY

12-04-1976

10 bytes fixed

American

MON DD YYYY

DEC 04 1976

11 bytes fixed

American

MON DD, YYYY

DEC 04, 1976

12 bytes fixed

American

MONTH DD YYYY

DECEMBER 4 1976

variable

American

MONTH DD, YYYY

DECEMBER 4, 1976

variable

American

DD/MM/YY

04/12/76

8 bytes fixed

European

DD-MM-YY

04-12-76

8 bytes fixed

European

DD/MM/YYYY

04/12/1976

10 bytes fixed

European

DD-MM-YYYY

04-12-1976

10 bytes fixed

European

DD MON YYYY

04 DEC 1976

11 bytes fixed

European

DD MONTH YYYY

4 DECEMBER 1976

variable

European

† Length does not include programmable serial output terminators.