Answers for "return a date time object in yyyy-mm-dd hr:min:sec"

0

return a date time object in yyyy-mm-dd hr:min:sec

const str = (new Date()).toISOString().slice(0, 19).replace(/-/g, "/").replace("T", " ");
Posted by: Guest on September-27-2020

Code answers related to "return a date time object in yyyy-mm-dd hr:min:sec"

Code answers related to "Javascript"

Browse Popular Code Answers by Language