U@FORMATDATE

The U@FORMATDATE routine formats a date according to the user's locale. This routine can be useful to format dates in messages since the formatting of dates in messages is not done as part of the formatting of other screen elements.

Module CALRTNS

Required Input

Field Type and length Definition
E@DRFRDATE N 8 Date to convert (in yyyymmdd format)
E@LOCALE A 30 The user's locale.

Output

Field Type and length Definition
E@DRFORMATDATE A 51 The date formatted according to the user's locale—for example, if the E@DRFRDATE is 20031231 and the locale is US English, the output is 12/31/2003.
E@DRERRORNBR N 9

Error number.

24 = Bad Date in E@DRFRDATE

E@DRERRORVAR A 20 Input parameter is in error.