How to convert date in momentJs to "YYYY-MM-DDThh:mm:ss[ HHMM|-HHMM]."?
Please help!!!
I didn't find in momentJs needed format
CodePudding user response:
Do you mean toISOString()
?
console.log(new Date().toISOString())
CodePudding user response:
console.log(new Date().toISOString())
No I meant for example: 2022-07-13T15:40:53 0600. I can't get this format in momentjs