I have just started using the EDTWRD facility in my DDS for a display file.
I have a field that contains a date of birth in the form DDMMYYYY. I would like to display this on a display file with as little hassle as possible and I expected EDTWRD to do the job. The format I would like is DD/MM/YYYY.
This is easy with EDTWRD(' / / ') but how do I get the leading zero on the day part of the date to be displayed for days less than 10? I tried EDTWRD('0 / / ') as indicated by the help in SDA but it makes no difference.
So in short...is there an easy way in DDS to display DDMMYYYY as DD/MM/YYYY with a leading zero on the DD when the day is less than 10?
I have a field that contains a date of birth in the form DDMMYYYY. I would like to display this on a display file with as little hassle as possible and I expected EDTWRD to do the job. The format I would like is DD/MM/YYYY.
This is easy with EDTWRD(' / / ') but how do I get the leading zero on the day part of the date to be displayed for days less than 10? I tried EDTWRD('0 / / ') as indicated by the help in SDA but it makes no difference.
So in short...is there an easy way in DDS to display DDMMYYYY as DD/MM/YYYY with a leading zero on the DD when the day is less than 10?