STOD(<C date string>)
Converts a date string to date type.
Returns <expD> date type of <date string>.
<date string> is in the format "YYYYMMDD".
Returns a blank date if <date string> is invalid
* Date string from calculations may be invalid
m_datestr = STR( YEAR(DATE()) ) +;
STR( MONTH(DATE()) + m_months ) +;
STR( DAY(DATE()) + m_days )
* Date type is blank if date string is invalid
date_type = STOD(m_datestr)
* Date type is valid even if date string is invalid
date_type = STOD( MAKEDATE(m_datestr) )
Placed in the Public Domain by Tom Rettig Assoc.