swirl Guide to OmniMark 5   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesOMX VariablesErrors
 
      Other Library Functions  
function   ymd-weekday    

Library: omdate - date and time functions
Include: omdate.xin
Return type: Integer
Returns:       

Returns the number of the day of the week.


Declaration

  define integer function ymd-weekday of value stream ymd


Purpose

This function takes a date in "YYYYMMDD" format and returns the appropriate day of the week's number for that date, with Monday being day 1 and Sunday being day 7.

Argument:

Example:

  output "Today is a day number " || "d" % ymd-weekday of now-as-ymdhms || "%n"

        Other Library Functions
   add-to-ymdhms
   arpadate-to-ymdhms
   format-ymdhms
   now-as-ymdhms
   round-down-ymdhms
   round-up-ymdhms
   ymd-weekday
   ymdhms-adjust-time-zone
   ymdhms-day-difference
   ymdhms-julian-day-count
   ymdhms-month-difference
   ymdhms-second-difference
   ymdhms-to-arpadate
 
----  

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

Generated: August 11, 2000 at 3:08:13 pm
If you have any comments about this section of the documentation, send email to docerrors@omnimark.com

Copyright © OmniMark Technologies Corporation, 1988-2000.