[Stackoverflow] [Progress OpenEdge ABL] Initializing date format

Status
Not open for further replies.
F

Felice

Guest
I am reading birthdates from a file. They are the format 2-Aug-83, 11-Jun-03. Is there a way to read these in and change the format to the default DD/MM/YYYY? This is the idea, but it is not syntactically valid, clearly. I have found so little online on using date masks and it stumps me each time that I encounter non-default date formats in data. (I wish I could make a stronger attempt but I am at a loss on how to begin.)

Here is the idea of what I want to do:

Code:
DEFINE VARIABLE dBirthday AS DATE FORMAT "DD-MON-YY".

dBirthday = 2-AUG-80.

DISPLAY dBirthday FORMAT "DD/MM/YYYY".

Continue reading...
 
Status
Not open for further replies.
Top