Navigation:  Reference > Functions >

DateInMDYFmt()

Print this Topic Previous pageReturn to chapter overviewNext page

 

MDY(1,2)

 

PURPOSE

This function returns a date value in the form of Month, Day, Year.

 

PARTS

 

1 f/c/eRequired - Date value to use.

 

2 f/c/eIf set to 'S' only the first three characters of the month value are used (e.g., Jan = January) and only the last two digits of the year.  If set to 'L' (long) then the full month name and the full year are used.  'S' is the default value.

 

RETURN TYPE - A

The size of the string returned depends on the month.

 

SEE ALSO

DMY()

 

EXAMPLE

define x type A size 20

x = MDY(date(),'s')

// x would contain a value similar to: 'Sep 30, 00'

 

x = MDY(date(),'l')

// x would contain a value similar to: 'September 30, 2000'

 

SEE ALSO

DATE()   Convert to Date CTOD() Convert to time CTOT()   TIME GET SET  Convert time to record TTOR()  Covert time to number TTOF() Convert time to string TTOC()

TIME() YEAR() Date Command  Date to Record DTOR()  Convert date to Character DTOC() Days in month DAY_IN_MONTH

Increment the Month INC_MONTH DayMonthyear DMY()  Month Day Year MDY()

Charicter of month CMNTH()  Charicter to day of week CDOW()

 

 


Page url: http://www.cassoftware.com/tas/manual/mdy().htm