Date and time system values: System date

Sets the date for system. (QDATE, QDAY, QMONTH, QYEAR, QDAYOFWEEK, QCENTURY, QDATETIME)

System Date, also known as QDATE, QDAY, QMONTH, QYEAR, QDAYOFWEEK, QCENTURY, QDATETIME is a member of the date and time category of i5/OS™ system values. You can use this system value to set the date on your system. To learn more, keep reading.

Quick reference
Location In iSeries™ Navigator, select your system, > Configuration and Service > System Values > Date and Time > Date
Special authority All object (*ALLOBJ)
Default value No default value
Changes take effect Immediately
Lockable No
Special considerations The system date is automatically updated when the time reaches midnight, 12:00:00 AM.

QDAYOFWEEK cannot be set by the user and is not included if you are using something other than the Gregorian calendar for the Leap year adjustment system value.

What can I do with this system value?

You can specify the date to be used on your system. The date includes the month, day, and year. The system supports dates that range from August 24, 1928 to July 6, 2053. If your system is not using the Gregorian calendar, the day of the week may not be set correctly. If the year (QYEAR) system value changes to a different century, the system automatically updates the century (QCENTURY) system value.

In the iSeries Navigator interface, the system date (QDATE) and time of day (QTIME) system values have not changed. However, they are combined into one system value in the character-based interface, QDATETIME. If you are accessing the date or time system value using the character-based interface, use QDATETIME rather than QDATE or QTIME. In the character-based interface, QDATE and QTIME are still accessible so you can access the date and time values separately, if needed. Use the QDATE and QTIME system values to retrieve values, and use the QDATETIME system value to set the date, time, or both. This ensures that the system values do not conflict with each other.

Where can I get more information about this system value?

To learn more, go to the date and time system values overview topic. If you are looking for a specific system value or category of system values, try using the i5/OS system value finder.

Related concepts
System values: Date and time overview
Date and time system values: Time of day
Related information
System value finder