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

The Archive Base Latest Questions

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

I have an ASP.NET application which uses JQuery datepicker for picking dates in some

  • 0

I have an ASP.NET application which uses JQuery datepicker for picking dates in some text boxes. For some date textboxes, I populate the date textbox from my database. When this textbox is clicked my JQuery datepicker appears, and it shows the current month with Today highlighted. This is fine for empty textboxes, however sometimes the text box is populated from the database.

When the textbox is not empty I want the datepicker to show the textbox month and have the selected date to be the textbox date.

Is this possible?

Here’s my current javascript code in my asp.net script header:

<script type="text/javascript">
    $(function () {
        $('#myTextBox').datepicker({
            dateFormat: 'dd-M-yy',
            numberOfMonths: 2,
            autoSize: true,
            changeMonth: true,
            changeYear: true,
            showButtonPanel: true,
            maxDate: 0
        });
    });  
</script>

Thanks,
Mark.

  • 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-18T07:20:54+00:00Added an answer on May 18, 2026 at 7:20 am

    You need to make sure that the format of your datepicker matches the format output by your serverside code. If they’re exactly the same then it’ll work. It won’t try to parse the date if it’s in a different format though.

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

Sidebar

Related Questions

We have an intranet asp.net web application which uses the OOTB ASP.net membership and
I have a C# service which is not an ASP.NET application, but uses a
I have an ASP.NET MVC application which uses plain HTML. I quickly need to
I have an ASP.NET web application that uses jQuery on client side. On one
I have created ASP.net Web application which uses Crystal Report to show reports. Now
I have an asp.net web-from application which uses ASP.NET membership provider . Beside this
I have an application which uses an asp .net chartarea to create a chart
I have an MVC 3 application which uses asp.net authentication. I have just created
I have an ASP.Net application which as desired feature, users would like to be
I have an ASP.NET MVC-application which I want deployable on both IIS6 and IIS7

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.