MDY()
Returns the date as a string in Month DD, YY or Month DD, YYYY
Syntax
MDY( [<dDate>] ) -> cDateString
Argument
<dDate> Designates the date from which to create a string. The default is the system date.
Description
Returns the date as a string in Month DD, YY or Month DD, YYYY If dDate is NULL, the system date is used MDY() returns the date in a character string that contains the day, name of month, and year. Harbour 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 Harbour nations module is in use. A German or French version of Harbour returns the appropriate month names, despite its characteristically American display.
Examples
? "Today :", DATE(), MDY() dDate := CTOD("02/01/89") ? dDate, MDY( dDate )
See also
DMY()
Compliance
MDY() is compatible with CT3’s MDY().
Platforms
All
Files
Source is dattime2.prg, library is libct.
Seealso
DMY()