NIPO ODIN Version 5.17

*DATE

Purpose

Gets current date and time.

Syntax

*DATE <Qn>

Description

This command is also allowed under condition. Gets the current computer date and time of the client workstation and stores this in 18 positions in the data field in the format YYYY/MM/DD hhmm:ss. If the data field isn't long enough the data will be truncated.

Arguments

Qn
The question reference of the data field where the date is stored.

Examples

*QUESTION 901 *ALPHA 101L18
*DATE Q901

** E.g., on January 31 2008 at 2:15 PM and 30 seconds 2008/01/31 1415:30 is stored.

*QUESTION 902 *ALPHA 201L10
*TIME Q902

E.g., on January 31st, 2008 2008/01/31 is stored in position 201-210, the time will be truncated (i.e. is not written). To write the time only, see the *DTIME command.

*TEXTVARS year,month,day
*QUESTION 1 *ALPHA 101L10
*QUESTION 2 *NUMBER 101L4
*QUESTION 3 *NUMBER 106L2
*QUESTION 4 *NUMBER 109L2
*DATE Q1
*PUT year Q2
*PUT month Q3
*PUT day Q4
*QUESTION 5

Today’s date is: *?month-*?day-*?year

*END

In this example, the complete date will be stored in question 1. Question 2, 3 and 4 refer to parts of the data field from question 1, to store the year, month and date.

See Also