Every line of 'moment pass date' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
362 function preDay(date) { 363 return new Date(date.getTime() - 24 * 60 * 60 * 1000) 364 }
17 public static parse(date: any): Date { 18 return moment(date).toDate(); 19 //return moment.utc(date).add('milliseconds', timeZoneOffset).toDate(); 20 }