return a date time object in yyyy mm dd hr 3amin 3asec

Solutions on MaxInterview for return a date time object in yyyy mm dd hr 3amin 3asec by the best coders in the world

showing results for - "return a date time object in yyyy mm dd hr 3amin 3asec"
Ivanna
09 Feb 2017
1const str = (new Date()).toISOString().slice(0, 19).replace(/-/g, "/").replace("T", " ");
2