get local datetime with utc in moment js code example
Example 1: moment check valid date
var date = moment("2016-10-19");
var check = date.isValid();
console.log(check);
Example 2: moment to date
moment().toDate();
var date = moment("2016-10-19");
var check = date.isValid();
console.log(check);
moment().toDate();