nan coming on subtracting 2 dates javascript dd/mm/yyyy code example
Example: Getting Nan when calculate two date js
var res = new Date(dat1).getTime() > new Date(dat2).getTime()
var res = new Date(dat1).getTime() > new Date(dat2).getTime()