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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T22:00:25+00:00 2026-06-16T22:00:25+00:00

Following is the code extract: @Html.TextBoxFor(m => m.CreatedSearchStartDate, new { @Value=Model.CreatedSearchStartDate.Value.ToString(dd/MM/yyyy), @selectedDate =Model.CreatedSearchStartDate.Value.ToString(dd/MM/yyyy), @class=dateInput,

  • 0

Following is the code extract:

@Html.TextBoxFor(m => m.CreatedSearchStartDate, 

            new { @Value=Model.CreatedSearchStartDate.Value.ToString("dd/MM/yyyy"),

                @selectedDate =Model.CreatedSearchStartDate.Value.ToString("dd/MM/yyyy"),

                @class="dateInput", @id="CreatedSearchStartDate" }

            )

Following is relevant JQuery code

 $("#CreatedSearchStartDate").each(function () {

    var a = $(this).datepicker(

        {

            dateFormat: "dd/mm/yy",

            defaultDate: new Date($(this).val())

        })

});   

The view is showing datepicker control, and it is functioning well. Also, the text box gets updated for underlying value (which I could check using Firebug). The only problem is that the underlying field in the model is not updated. Whereas, there are some other fields also in this model, which gets updated properly.

What could be the possible reason?

  • 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-16T22:00:26+00:00Added an answer on June 16, 2026 at 10:00 pm

    I have a feeling this is a culture problem. I haven’t experienced this problem myself, but I know others have. If there is a difference between the “culture settings” for your view compared to your application it can cause validation errors. Also it sounds like you need to make sure you are using post on your form submit for culture to be applied correctly. Check out these other posts and see if any of them help:

    ASP.Net MVC model binding – how to change date format?

    Custom DateTime model binder in Asp.net MVC

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

Sidebar

Related Questions

Consider the following html code: <div id='x'><div id='y'>Y content</div>X content</div> I'd like to extract
I have the following code in a Google map script... <a class='btn btn-modal' data-target='popup.html'>Go</a>
Extracting the href value from the following sample HTML code is straight forward if
I am using the following code to fetch html source website. private string Extract_Source(string
I know the following code could extract whole texts of the docx document, however,
I have the following code that I am trying to extract the systems proxy
I have been trying to extract e-mail addresses from the following code for quite
The following extract of code is failing to compile resulting in not code paths
Following is my code: import zipfile from zipfile import ZipFile def extract(zipFilename, dm_extraction_dir) :
Following code worked fine abstract class FunctionRunnable<V> implements Runnable { protected abstract V calculate();

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.