function
|
Library: Date and time functions (OMDATE)
Include: omdate.xin |
Returns: The specified date in the indicated format. |
define string function format-ymdhms value string date-format
with-date value string ymdhms
Argument definitions
This function takes a date/time in "YYYYMMDDhhmmss+ZHZM" format and returns it formatted as for the OmniMark date operator.
; Format the date with day and month written out
include "omdate.xin"
process
output format-ymdhms "Now == =W, =xD =n =xY, =h:=m:=s =a.m. =t%n"
with-date now-as-ymdhms
; Result of this code run on Valentine's Day, 2001:
; Now = Wednesday, 14 February 2001, 04:06:21 p.m. -0500