Joined: 18 Jul 2007 Posts: 2150 Location: At my coffee table
Have you looked into DATE instead of DATENS?
specifies that the current date is to appear in the report record in the form ’adbdc’, where a, b, and c indicate the order in which the month, day, and year are to appear and whether the year is to appear as two or four digits, and d is the character to be used to separate the month, day and year.
For a, b, and c, use M to represent the month (01-12), D to represent the day (01-31), Y to represent the last two digits of the year (for example, 05), or 4 to represent the four digits of the year (for example, 2005). M, D, and Y or 4 can each be specified only once. Examples: DATE=(DMY.) would produce a date of the form ’dd.mm.yy’, which on March 29, 2005, would appear as ’29.03.05’. DATE=(4MD−) would produce a date of the form ’yyyy-mm-dd’, which on March 29, 2005, would appear as ’2005-03-29’.