[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 MDY()
 Returns a date in the "Month DD, YY" format
------------------------------------------------------------------------------
 Syntax

     MDY([<dDate>]) --> cDate

 Argument

     <dDate>  Designates the date from which to create a string.  The
     default is the system date.

 Returns

     MDY() returns a character string in Month DD, YY, or "Month DD, YYYY"
     format.

 Description

     MDY() returns the date in a character string that contains the day, name
     of month, and year.  The CA-Clipper SET CENTURY ON/OFF switch determines
     whether or not the year is displayed in 2 or 4 digits.

     If the function is called without a parameter, it automatically uses the
     current system date.

 Note

     .  The returned month name always depends on which CA-Clipper
        nations module is in use.  A German or French version of
        CA-Clipper returns the appropriate month names, despite its
        characteristically American display.

 Examples

     .  Display system date (1/1/89):

        SET CENTURY OFF
        ? MDY()                      //  January 1, 89

     .  Display a different date:

        SET CENTURY ON
        ? MDY(CTOD("02/01/89"))      //  February 1, 1989


See Also: DMY()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson