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>convert a yyyymmdd string to a clipper date.</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 Convert a YYYYMMDD string to a Clipper date.
------------------------------------------------------------------------------

 Syntax

        GT_SToD(<cDateString>) --> dClipperDate

 Arguments:

      <cDateString> is a string in the same format as that returned by
      the Clipper function dtos(). The format is "YYYYMMDD" where "YYYY"
      is the year, "MM" is the month and "DD" is the day.

 Returns:

      A Clipper date.

 Description:

      GT_SToD() can be used to convert a string date into a Clipper date
      variable. This is of use if you wish to hard code a date into a
      program but you don't know what date format will be used.

 Examples:

      set date    british
      set century off
      dDate := GT_SToD("19671209")
      ? dDate                         // Prints `09/12/67'

 Source: STOD.C

 Author:  Dave Pearson

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