swirl
Guide to OmniMark 9   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
    Other Library Functions  
function  

format-ymdhms

 
 

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

Returns: The specified date in the indicated format.


Declaration

define string function format-ymdhms value string date-format
                           with-date value string ymdhms

Argument definitions

date-format
the format in which you want the specified date, given using OmniMark date format modifiers (such as "=Y/=M/=D", etc)
ymdhms
a date in "YYYYMMDDhhmmss+ZHZM" format


Purpose

This function takes a date/time in "YYYYMMDDhhmmss+ZHZM" format and returns it formatted as for the OmniMark date operator.

Example:


  ; 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

      Other Library Functions
 
 

Top [ INDEX ] [ CONCEPTS ] [ TASKS ] [ SYNTAX ] [ LIBRARIES ] [ LEGACY LIBRARIES ] [ ERRORS ]

OmniMark 9.1.0 Documentation Generated: September 2, 2010 at 1:38:10 pm
If you have any comments about this section of the documentation, please use this form.

Copyright © Stilo International plc, 1988-2010.