Returns the Magic date as defined in the Magic Date environment setting.
Syntax:
MDate()
Parameters:
None
Returns:
Date
Example:
MDate()+5 returns a date that is five days later than the Magic date. The numbers added or subtracted are interpreted as numbers of days.
Exceptions:
This function is not supported for Rich Client tasks.
See also:
The Online Samples project (program DT21)