Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8576197
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T19:52:23+00:00 2026-06-11T19:52:23+00:00

Simple function Date.parse() not working well in Internet Explorer 8 . I am using

  • 0

Simple function Date.parse() not working well in Internet Explorer 8.
I am using Date.parse() to validate date in format "MM/DD/YYYY".

  • _.isNaN(Date.parse("99/99/9999")) return true – date is invalid
  • _.isNaN(Date.parse("01/01/1990")) return false – date is valid

But now I tried my JavaScript in IE 8 and I’m confused.

  • "88/88/8888" – for this date all working well – date is invalid.
  • "13/35/2012" – invalid date
    but Date.parse("13/35/2012") parse this date in IE only and don’t return NaN.

jsFiddle Demo

Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T19:52:24+00:00Added an answer on June 11, 2026 at 7:52 pm

    I used my method for date validation

       var isValidDate = function(dateAsString)
       {
          var parsedDate = Date.parse(dateAsString);
          if (_.isNaN(parsedDate) || !_.isEqual(new Date(parsedDate).format("mm/dd/yyyy"), dateAsString))
          {
             return false
          }
    
          return true
       }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using PHP's date function. The statement is as simple as $t= 1339455660;
I have a simple function that works in chrome, but in Internet explorer (9)
I have a simple function converts date to java.sql.date . public static java.sql.Date getSqlDate(String
I'm trying to create a simple function which returns me a date with a
consider this simple function def foo(l=[]): if not l: print List is empty else
I am using jquery-1.4.2 library and jquery.validate.js plugin to validate a very simple form.
I'm using a jQueryUI datepicker for a simple From & To date range filter
I've got a simple function like this: function CreateFileLink() { global $Username; return date(d-m-y-g-i);
I include this simple error handling function to format errors: date_default_timezone_set('America/New_York'); // Create the
I'm looking for a JavaScript library which can parse and format date values and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.