For example, I get string '20201101'
What I do is convert the string to '2020.11.01'
Here is what I did.
const dateString = '20201101'
const dateArr = dateString.split('')
dateArr.splice(4, 0, '.')
dateArr.splice(7, 0, '.')
const dateFormat = dateArr.join('')
I think it is bit long, so I'm looking for another answer for this.
Thank you!