I am looking for a JavaScript ES7 Method, which will convert new Date()
into the following format below. Is there an ES7 method which will do this, or else I can manually parse/find/replace myself.
2020-06-30 07.49.28
Date with hyphen, time with period.
Currently using typescript in Angular 8, however JavaScript syntax will also work.
Also open to Angular Method, Moment, Lodash or other library method.
*If none available, will take simplest find/replace/regex method,