Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

EDTWRD Or EDTCDE? 1

Status
Not open for further replies.

Skittle

ISP
Sep 10, 2002
1,528
US
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?

 
Hi

Leave two spaces after the '0' and before the first '/'.

Hope this helps.

--------------------------------
If it ain't broke, don't fix it!
 
Thanks chaps. The '0' did indeed need to be before two spaces.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top