What do you want to save?
Add Code snippet
New code examples
-
Other 2021-09-07 05:34:02
does not conform to the required format. The format is "yyyy-MM-ddThh:mm" followed by optional ":ss" or ":ss.SSS".
export function toDatetimeLocal(){ const date = new Date(), ten = (i)=> ((i < 10 ? '0' : '') + i ), YYYY = date.getFullYear(), MTH = ten(date.getMonth() + 1), DAY = ten(date.getDate()), HH = ten(date.getHours()), MM... Add solution
Best helpers
Joker13
+5
Remmy Kasili
+5
Anand GV
+5
Manx rat
+5
Jokim
+5
Nitro2k01
+5
Letomkov
+5
Glob Cropper
+5