Navigation:  Reference > Functions >

DateToAlpha()

Print this Topic Previous pageReturn to chapter overviewNext page

 

DTOC(1,2)

 

PURPOSE

This function will convert a D type field into an A type field.

 

PARTS

 

1 f/c/eRequired - The D type field to be converted.  The original field value is not changed.

 

2 f/c/eThe size of the A type version of the date to return.  The default is 8 (mm/dd/yy).  You can use any legal date size as the value.

 

RETURN TYPE - A

If the receiving field is not long enough the returned value will be truncated.

 

EXAMPLE

define x type a size 10

x = DTOC(date(),10)

(*  if the current date is 09/30/00 then

   x = 09/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/datetoalpha.htm