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 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

I have created ASP.net Web application which uses Crystal Report to show reports. Now
I have a simple ASP.NET MVC web application that uses NHibernate with FluentNHibernate's auto
We have an ASP.NET application that's partly in MVC (the rest of it being
I have a webapplication which uses an external webservice to send files and messages.
I have an ASP.NET WebForms page with forms authentication. When users create a login,
I have a database running on MS SQL Server 2005 and an ASP.NET 3.5
I am using ASP.NET Dynamic Data Entities project to generate a web application for
I need to estimate (and probably build later on) complex filter in ASP.NET WebForms
I'm facing some architectural problems on the project I'm involved in. The project is
After getting pretty far along with a jQTouch web application for our website, my

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.