In PB 2017 R3 1858 the Date ("string") function doesnt seem to recognise 4 digit years
In my case I have to conver strings like 31-Dec-2012 But Date("31-Dec-2012") returns 12/31/2020 (in US M/d/yyyy)
From what I can tell the Date function is only looking at the first 2 digits of the year.
Is this a bug?
In the documentation
"Valid dates in strings can include any combination of day (1 to 31), month (1 to 12 or the name or abbreviation of a month), and year (2 or 4 digits). PowerBuilder assumes a 4-digit number is a year."
I can confirm there's a problem.
PB 2017 build 1681
Date("31-Dec-2012") returns 12/31/2020
Date("31-Dec-12") returns 12/31/2012