convert datetime to date typescript code example
Example 1: string to date in typescript
let dateString = '1968-11-16T00:00:00'
let newDate = new Date(dateString);
Example 2: string to date in typescript
{{dateString | date:'MM/dd/yyyy'}}
let dateString = '1968-11-16T00:00:00'
let newDate = new Date(dateString);
{{dateString | date:'MM/dd/yyyy'}}