I am using angular material 2 Date-Picker component
The only string input it understands is in ISO date format
Ex. \"2017-11-13T10:39:28.300Z\"
But i
First import moment and set format . https://momentjs.com/
import * as moment from 'moment'; setDateFormat(date) { this.myDate = moment(date).format('YYYY/MM/DD HH:mm:ss'); }