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 - dow() convert date to number representing day of week http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 dow()               Convert date to number representing day of week
------------------------------------------------------------------------------
 Declaration
   date.hdr

 Syntax
   func int dow extern
   param value date dDate

 Arguments
   dDate is the date to convert.

 Return
   An integer between 1 and 7.

 Description
   The dow() function converts dDate into a number representing the day
   of the week. Sunday is considered day 1 and Saturday is day 7.

 Example
   #define EXAMPLE_DATE
   #include example.hdr

   proc Test_dow
   // Send a note to all workers about FAC
   if dow( today() ) == 6
      ? "Friday Afternoon Club!!!"
   else
      ? "No fun today"
   endif
   endproc

   proc main
   Test_dow()
   endproc

See Also: ddow()

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