title: Nan issue in IE 11
body: <p>I have the following javascript -</p>
  
  <pre><code>datefrom = new Date(event.min);
  
                             if (datefrom != 'Invalid Date') {
  
                                 var day = datefrom.getDate();
                                 var month = datefrom.getMonth() + 1; //Months are zero based
                                 var year = datefrom.getFullYear();
                                 var hour = datefrom.getHours();
                                 var min = datefrom.getMinutes();
  
                                 if (day &lt; 10)
                                     day = "0" + day;
                                 if (month &lt; 10)
                                     month = "0" + month;
                                 if (hour &lt; 10)
                                     hour = "0" + hour;
                                 if (min &lt; 10)
                                     min = "0" + min;
  
                                 datefrom = day + "/" + month + "/" + year + " " + hour + ":" + min;
  
  
                                 $("#DateBox1").val(datefrom);
                             }
                             else {
                                 alert('IM HERE!!!');
                                 $("#DateBox2").val(originalFrom);
                             }
  </code></pre>
  
  <p>When using the application in Chrome and FireFox I can successfully get into the <code>else</code> statement and alert "!M HERE!!!" no bother, as datefrom is an invalid date.</p>
  
  <p>However IE states that date from is <code>NaN</code> and for some reason I can't get into the else statement.</p>
  
  <p>I have put alrets within the if statement to see where I am when running and for some reason I just can't get into the else and set the correct value in IE. Why is this happening???</p>