I'm manipulating some data coming from an external XML that I cannot change. This XML has dates in this format:
01-APR-39
and I want the date to become in this format:
01/04/1939
but using:
new Date('01-APR-39').toLocaleDateString('en-GB')
is returning wrong century:
01/04/2039
how can I fix this?