Is there a way to convert the unformatted date 112889 (mmddyy) into a specific format like 11/28/89?
console.log(new Date('112889'))
// The output I'm getting is: Sat Jan 01 112889 00:00:00 GMT+0800
I've searched extensively on Google for answers but haven't found any concrete solutions.
Reference searches:
- Convert number into date using javascript
I also considered using momentjs for formatting, but couldn't find relevant documentation or perhaps I missed it.