I want to convert the digit 250101 into valid date format (YY-DD-MM) in JavaScript.
Assume this **250101 **as 2025/01/01.
I used moment for this.
moment(250101).format(YY-MM-DD). But is giving the invalid date format.
I want to convert the digit 250101 into valid date format (YY-DD-MM) in JavaScript.
Assume this **250101 **as 2025/01/01.
I used moment for this.
moment(250101).format(YY-MM-DD). But is giving the invalid date format.