Xbasic

MDY Function

Syntax

Formatted_Date as C = MDY(D date)

Arguments

date

A variable containing a date value or a character string containing a legitimate representation of a date value ( ISDATE (Date_Value) = .T.).

Description

Returns a formatted character string in the 'Month DD, YYYY' format.

Discussion

MDY() returns a Formatted_Date in the "Month DD, YYYY" format for the specified Date_Value.

Example

mdy({12-18-95}) ->  "December 18, 1995"
mdy(BIRTHDAY) ->  "November 25, 1995", assuming BIRTHDAY contains 11-25-95
mdy(date() )-> Current system date

See Also