now-as-ymdhms

function

Library: Date and time functions (OMDATE)
Include: omdate.xin

Returns: Returns a string representing the current date and time in YYYYMMDDhhmmss+ZHZM format.


Declaration
define string function now-as-ymdhms


Purpose

Use now-as-ymdhms fetch the current date and time in a standard, normalized YYYYMMDDhhmmss+ZHZM format format.

Example

The following program uses now-as-ymdhms to obtain the current date, which it then outputs.

  include "omdate.xin"
  
  process
    local string ymdhms
  
    set ymdhms to now-as-ymdhms
  
    output "Current date = " || ymdhms || "%n"

Usage Note

To use now-as-ymdhms, you must include the following code near the top of your program:

  include "omdate.xin"