MDY()

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()

Advertisements

2 responses to “MDY()

  1. Pingback: Harbour Date & Time Functions | Viva Clipper !

  2. Pingback: Harbour All Functions – M | Viva Clipper !

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s