I have a form input with an id of \'date_trans\'. The format for that date input (which is validated server side) can be any of:
The Best way and recommended way of comparing date in typescript is:
typescript
var today = new Date().getTime(); var reqDateVar = new Date(somedate).getTime(); if(today === reqDateVar){ // NOW } else { // Some other time }