$FUNCNAME$
  DTOS()
$CATEGORY$
  DATE/TIME
$SUMMARY$
   Convert a date value to a character string formatted as yyyymmdd
$LANG_RU$
          .
$SYNTAX$
     DTOS(<dDate>) --> cDate
$LANG_RU$
     DTOS(<>) --> -
$ARGUMENTS$
     <dDate> is the date value to convert.
$LANG_RU$
     <> -   .
$RETURNS$
     DTOS() returns a character string eight characters long in the format
     yyyymmdd.  When <dDate> is a null date (CTOD("")), DTOS() returns a
     string of eight spaces.  The return value is not affected by the current
     date format.
$LANG_RU$
     DTOS()     5    .
        <>   , (CTOD("")),
     DTOS()     .  
             SET DATE.
$DESCRIPTION$
     DTOS() is a date conversion function that is used when creating index
     expressions consisting of a date value and a character expression.
     DTOS() converts a date value to a character string that can be
     concatenated to any other character expression.  The return value is
     structured to preserve date order (year, month, and day).
$LANG_RU$
     DTOS() -    ,   
       ,   ,  
     ,      - 
      .     - 
     .
$EXAMPLES$
       These examples illustrate DTOS() in conjunction with several
	other functions:

	? DATE()                        // Result: 09/01/90

	? DTOS(DATE())                  // Result: 19900901
	? LEN(DTOS(CTOD("")))           // Result: 8

       This example demonstrates how to create an index with a
	compound date and character key using DTOS():

	USE Sales NEW
	INDEX ON DTOS(Date) + Salesman TO DateName
$LANG_RU$
           DTOS() 
          :

       ? DATE()                     // : 09/01/90
       ? DTOS(DATE())               // : 19900901
       ? LEN(DTOS(CTOD("")))        // : 8

        ,     DTOS()
       ,        :

       USE Sales NEW
       INDEX ON DTOS(Date) + Salesman TO DateName
$SEEALSO$
  CTOD(),DATE(),DTOC()
$END$
