Date.parse returns year 1900 when specifying 2 digit year

Confirmed Issue #11611685 • Assigned to Travis L.

Details

Author
Micah G.
Created
Apr 11, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

var parsed = Date.parse('01/01/01');
var date = new Date(parsed);

console.log(date.getFullYear());

This returns 2001 in Chrome/FF/Safari, but returns 1901 in Edge.
http://codepen.io/micahgodbolt/pen/ZKzqgM

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “James M.”

      Changed Assigned To to “Travis L.”

      Changed Status to “Confirmed”

      Changed Title from “Date.parse returns year 1900 when specifying 2 digit year” to “Date.parse returns year 1900 when specifying 2 digit year”

    You need to sign in to your Microsoft account to add a comment.

    Sign in