javascript - Java script Date.parse not working in IE8 -


hi using java script compare between 2 dates using date.parse function

var pfrmdt = date.parse(frmdt); var ptodt = date.parse(todt);                     if(pfrmdt <= ptodt)                      {                         return true;                      }                      else {                             focusctrl.value="";                           focusctrl.focus();                         } 

and date format dd/mmm/yyyy working in other browsers not in ie8. when alerts value of pfrmdt , ptodt showing nan in ie8. solution?

date.parse() part of ecmascript-5. microsoft browser support follows:

  • ie9 mode, ie10 mode, , ie11 mode

references


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -