Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - cdow() return the day of week in character format http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 cdow()              Return the day of week in character format
------------------------------------------------------------------------------
 Declaration
   date.hdr

 Syntax
   func char cdow extern
   param value date dDate

 Arguments
   dDate is the date to convert.

 Return
   The name of the day of the week.

 Description
   The cdow() function returns the day of the week represented by dDate
   as a character string. The function retrieves the day names from the
   array __daynames[] which contains the English day names.

 Example
   #define EXAMPLE_DATE
   #include example.hdr

   proc Test_cdow
   vardef
      date dBirth
   enddef
   input "Enter your birthday (mm/dd/yy): " to dBirth
   ? "Input was", dBirth
   ? "You were born on", cdow( dBirth ) // show day of the week for a birthday
   endproc

   proc main
   Test_cdow()
   endproc

See Also: __daynames cmonth() day()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson