Skip to main content

Date / Time Stamp / Time Display

Syntax

Date
Time Stamp
Time Display 12
Time Display 24

Description

Date prints the current date and time at the bottom of a listing. Time Stamp adds a timestamp to the output. Time Display controls whether the time is shown in 12-hour or 24-hour format.

Remarks

  • Date places the date/time in the footer area of the printed listing.
  • Time Display 12 uses AM/PM format (e.g., 2:30 PM).
  • Time Display 24 uses 24-hour format (e.g., 14:30).
  • The default format depends on system regional settings.

Examples

Print the date in 12-hour format:

Time Display 12
Date