I have two dates , first date is string coming from input text like 01-01-2011(dd-MM-yyyy) and second date is current date or system date(new Date()).
I have to compare the input date to current date(gretter or equal). I'm facing issue of NaN and did not find efficient help in google.
Any help will be appreciate.