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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T12:53:22+00:00 2026-05-18T12:53:22+00:00

My application runs under ro-RO culture settings, configured in web.config globalization section. If I

  • 0

My application runs under ro-RO culture settings, configured in web.config globalization section. If I make a POST request like

POST /myapp/index
date=03-12-2010&value=something

the model binding maps this to correct date value of “03 December 2010”, since the default datetime format for ro-RO culture is dd-MM-yyyy. If I change the request method to GET passing the same data the date value in my action becomes “12 March 2010” (MM-dd-yyyy datetime format)

GET /myapp/index?date=03-12-2010&value=something

$.getJSON('/Home/Index', $('form').serialize(), function(d) {
            // ...
});
$.post('/Home/Index', $('form').serialize(), function(d) {
            // ...
}, 'json');

So in this case “getJson” & “post” must return the same result, but I get different results because of datetime difference.

How can I enable the same parsing format for GET requests also?

I know I can use a more generic format such as yyyy-MM-dd for dates, but I am just curious why is this happening?

  • 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-05-18T12:53:23+00:00Added an answer on May 18, 2026 at 12:53 pm

    From my previous answer on this subject: Nullable DateTime Parameter is never bound when calling the action

    “This is intentional. Anything that is part of the URI (note the ‘Uniform’ in URI) is interpreted as if it were coming from the invariant culture. This is so that a user in the U.S. who copies a link and sends it over IM to a friend in the U.K. can be confident that his friend will see the exact same page (as opposed to an HTTP 500 due to a DateTime conversion error, for example). In general, dates passed in RouteData or QueryString should be in the format yyyy-mm-dd so as to be unambiguous across cultures.

    If you need to interpret a QueryString or RouteData parameter in a culture-aware manner, pull it in as a string, then convert it to the desired type manually, passing in the desired culture. (DateTime.Parse has overloads that allow you to specify a culture.) If you do this, I recommend also taking the desired culture as a QueryString or a RouteData parameter so that the ‘Uniform’ part of URI isn’t lost, e.g. the URL will look something like …?culture=fr-fr&date=01-10-1990.“

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

Sidebar

Related Questions

I have a web application that runs fine under IIS5 or IIS6. I just
I have developed one web application that runs under all browser via applet (core
My application runs under CF 2.0 locally and i would like to know how
I have an c# winform application that runs under a local account but needs
I have an ASP.NET application that runs under Classic .NET AppPool. I'm trying to
I have an ASP.NET application which runs under the Classic .NET AppPool in IIS.
My application runs under tomcat. It is using GSS API (JNDI) to connect to
is there possibility to do uninstall of your application which runs under iPhone? There
I have created a Mac OS X helper application that always runs under root.
I have an war file with runs under tomcat i need to make it

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.