Navigation:  Reference > Functions >

DateToRec()

Print this Topic Previous pageReturn to chapter overviewNext page

 

DTOR(1)

 

PURPOSE

This function will convert a D type field to an R type field.

 

PARTS

 

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

 

RETURN TYPE - R

The returned value is the number of days since 01/01/0001.

 

EXAMPLE

define x type r

x = DTOR(date())

// if the current date is 09/30/00 then x = 36805

 

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/datetorec().htm