0
I have a string with the following value: 20191219 this is a date in the format month and day, I wanted to know how to transform it to the format day/month/year, using the value I mentioned, would 19/12/2019.
Searching the internet I saw that has Date.parse(), but it would only work if this string was broken with spaces, / or -
I thought of using substring to capture the positions, taking the year, month and day, and with that assemble in the format I want, however, I imagine that there should be an easier way to do this.
Ball show, thank you very much, knew that would have a more effective way, with this I can even do the reverse way to save a new date in the bank
– Sérgio Machado