Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Novlib 3.30 Online Reference - <b> fsdateget() / fsdateset()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 FSDateGet() / FSDateSet()
------------------------------------------------------------------------------
 Purpose:
 Get or set the file server date.

 Syntax:
 lpszDate = FSDateGet()
 lpszDate = FSDateSet( lpszNewDate )

 Parameters:
 lpszNewDate The new file server date.

 Returns:
 A character string of length 8 (see Notes).

 The CA-Clipper names for these functions are:
 FSDateGet() / FSDateSet()

 Description:
 FSDateGet() returns the current file server date.

 FSDateSet() sets the file server date to the specified value lpszNewDate.
 If the file server date is successfully set, FSDateSet() returns the
 previous date.
 Returns an empty date if an error occurs.

 Example:
 // To return the current file server date:
 lpszCurrDate = FSDateGet()
 if ( !empty( lpszCurrDate ) )
    ? "The file server date is", lpszCurrDate
 endif
 // To set the file server date to 1st January 1993:
 lpszOldDate = FSDateSet( ctod( "01/01/93" ) )
 lpszNewDate = FSDateGet()
 if ( !empty( lpszNewDate ) )
    ? "The server date is now 1st January 1993"
 endif

 Notes:
 The user must have console operator rights to set the date with
 this function.

 The format of the date values is the ANSI style "yyyymmdd" except with
 CA-Clipper and CA-Visual Objects where the date values are of type DATE.

See Also: FSTimeGet() / FSTimeSet() FSWSSynchronize()

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