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 8058845
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T09:28:42+00:00 2026-06-05T09:28:42+00:00

I am facing this weird problem were the default date time format for javascript

  • 0

I am facing this weird problem were the default date time format for javascript object has changed from “dd/mm/yyyy” to “mm/dd/yyyy”….due to this I am getting many invalid dates,

This is only restricted to one machine,(which I surely doubt someone messed up the system date or something as I am not the only one using the machine),

I know the problem is only confided to the machine ,but I want to find the reason why this happened and how I can solve this

  • 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-05T09:28:43+00:00Added an answer on June 5, 2026 at 9:28 am

    There is some information missing here. The standard Date object does not understand DMY-formatted dates or MDY-formatted dates. Instead it uses the ISO 8601 format (or RFC2822) for dates. So, for example, if a particular browser understands

    var d = new Date("5/6/2012");
    

    as May 5, 2012 or as 5 June, 2012, or ignores it completely, it’s entirely browser dependent. The standard expects a date formatted in the form "YYYY-MM-DD" and so on.

    Also the parameter in

    var d = new Date(5/6/2012);
    

    is being interpreted as 5 divided by 6 divided by 2012, which is a small number just greater than zero. This is interpreted as a time on the base day, viz 1 January, 1970.

    So, for the base system’s regional settings to have an influence, there must be some other code somewhere that formats dates as DMY or MDY or something else.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am facing a weird problem while initializes javascript date object,no matter what I
this time, I'm facing a really weird problem. I've the following code: $xml =
My development team of four people has been facing this issue for some time
ohk i am facing this very weird problem . i have a cloud server
I am facing a weird problem with a text field on my page. This
I am facing this weird problem. The WebApp I'm debugging right now, is invoking
I'm facing a very weird problem. This is map.h: #define MAP_WIDTH 256 #define MAP_HEIGHT
I am facing this very weird problem, I have created a custom UITableViewCell on
From this morning, I am facing weird issues with Rails devise. Following is output
Hi I started building apps with this technology and I am facing a weird

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.