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

  • Home
  • SEARCH
  • 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 3979234
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T05:08:41+00:00 2026-05-20T05:08:41+00:00

I have an asp.net webpage, with a jQuery datepicker on it. I am in

  • 0

I have an asp.net webpage, with a jQuery datepicker on it.

I am in the UK, so when I enter 28/02/2010, I expect it to resolve to 28th Feb 2010.

This is working as expected on my local dev env – but not on our QA or prod-like envs – or one of the other dev machines. In these cases it seems to attempt to resolve it to American date format – and fails validation as it is out of range.

The jQuery seems to generate the correct date each time – which leads me to think it may be a database issue.

I am using SQL Server 2005, my collation is Latin1_General_CI_AS, my colleagues are using collation SQL_Latin1_General_CP1_CI_AS, and a Chinese one.

Given that we don’t have control over the prod SQL Server installation (just our db), what is the best way to make this work in a standard way? Change the db settings, or the code that uses it?

Thanks in advance!
– L

[EDIT to add code info]

This is my view code to call the datepicker:

 <%=Html.TextBox("DateOfBirth", Model.DateOfBirth.ToShortDateString(), new { @class = "datepicker" })%>

Here is the js for the datepicker:

DatePickerSettings = {
    setup: function () {
        $(".datepicker").datepicker({
            dateFormat: 'dd/mm/yy',
            changeMonth: true,
            changeYear: true
        });
    }
};

And this is how I specify the date in the model:

[Required]
[DisplayName("Date of Birth")]
public virtual DateTime DateOfBirth { get; set; }

The date appears correct inthe controller and repository… until it hits the db.

Thanks 🙂

  • 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-20T05:08:41+00:00Added an answer on May 20, 2026 at 5:08 am

    Is your page Culture aware?
    You can determine UI Cutlure information for different browsers(locales) and have your ASP.NET Culture constant.

    The Culture value determines the results of culture-dependent functions, such as the date, number, and currency formatting, and so on. The UICulture value determines which resources are loaded for the page

    Check out this MSDN link:
    How to: Set the Culture and UI Culture for ASP.NET Web Page Globalization

    http://msdn.microsoft.com/en-us/library/bz9tc508(v=VS.85).aspx

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

Sidebar

Related Questions

I have an ASP.NET webpage running under IIS that uses a common assembly that
Scenario: You have an ASP.Net webpage that should display the next image in a
I have an ASP.NET 2.0 (C#) webpage with a link that pulls a blob
I have an ASP.net page. When I am closing the webpage I need to
We have an advanced webpage (ASP.NET, C#), and a application which needs to be
I have a jquery accordion on an asp.net aspx weppage. Inside the panes, I
We have an asp.net webpage that uses viewstate. During a lengthy operation (that takes
i have a asp.net webpage with a GridView <asp:GridView ID=grid_view runat=server AllowPaging=True AutoGenerateColumns=False BackColor=White
I have 40 asp.net dropdownlists in my webpage. When i bind the controls in
I have an ASP.NET web page that displays a variety of fields that need

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.