home *** CD-ROM | disk | FTP | other *** search
/ Power CD-ROM!! 7 / POWERCD7.ISO / prgmming / clipper / stod1.prg < prev    next >
Text File  |  1993-10-14  |  1KB  |  61 lines

  1. /*
  2.  * File......: STOD1.PRG
  3.  * Author....: Martin Colloby
  4.  * BBS.......: The Dark Knight Returns
  5.  * Net/Node..: 050/069
  6.  * User Name.: Martin Colloby
  7.  * Date......: 18/4/93
  8.  * Revision..: 1.0
  9.  *
  10.  * This is an original work by Martin Colloby and is placed in the public
  11.  * domain.
  12.  *
  13.  * Modification history:
  14.  * ---------------------
  15.  *
  16.  * $Log$
  17.  *
  18.  */
  19.  
  20.  
  21. /*  $DOC$
  22.  *  $FUNCNAME$
  23.  *      GT_STOD1()
  24.  *  $CATEGORY$
  25.  *      Date
  26.  *  $ONELINER$
  27.  *      Convert a date in the format DDMMYY to a Date type
  28.  *  $SYNTAX$
  29.  *      GT_STOD1( cDate )
  30.  *  $ARGUMENTS$
  31.  *      cDate - A date in the format DDMMYY
  32.  *  $RETURNS$
  33.  *      cDate as a date
  34.  *  $DESCRIPTION$
  35.  *      Convert a date in the format DDMMYY to a Date type
  36.  *  $EXAMPLES$
  37.  *
  38.  *  $SEEALSO$
  39.  *
  40.  *  $INCLUDE$
  41.  *
  42.  *  $END$
  43.  */
  44. *
  45. FUNCTION GT_StoD1( cDate )
  46.  
  47. /*****************************************************************************
  48.  Purpose - Convert a date in the format DDMMYY to a Date type
  49.  Returns - None
  50.  Author  - Log
  51.  Created - 08/12/92
  52. ******************************************************************************
  53.  Parameters - None
  54.  Privates   - None
  55.  Locals     - None
  56.  Externals  - None
  57. *****************************************************************************/
  58.  
  59. RETURN CTOD( SUBSTR( cDate , 1 , 2 ) + "/" + SUBSTR( cDate , 3 , 2 ) + "/" + SUBSTR( cDate , 5 , 2 ) )
  60. *
  61.