Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- GT_LIB v1.0 Reference Guide Release 1.0 - <b>numeric day of week from a full or partial character string</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 Numeric day of week from a full or partial character string
------------------------------------------------------------------------------

 Syntax

            GT_DOW2N( <cDay> ) -> nValue

 Arguments:

                <cDay>       is a full or partial week day. "Mon", "Monday"

 Returns:

                A numeric value of the day of the week Sun -> 1

 Description:

                GT_DOW2N() can be used to get the numeric day of a character week day

 Examples:


                         local cDay := "Mon"

                         ? "Day of Week for", cDay, " is ", GT_DOW2N( cDay )

                         result :
                                          Day of Week for Mon is 2


 Source: GT_DOW2N.PRG

 Author:  George Brennan

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