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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:23:55+00:00 2026-05-25T11:23:55+00:00

I have FROM DATE and TO DATE in a web form both are using

  • 0

I have FROM DATE and TO DATE in a web form both are using the ajax calenderextender. When users select the FROM DATE and I want to default the TO DATE calenderextender date to FROM DATE +2 days. Is there any way to achieve this?

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-25T11:23:55+00:00Added an answer on May 25, 2026 at 11:23 am

    You can use javascript to set the SelectedDate property of “To Date” Calendar in OnClientShowing event. This is how you can do this:

    in markup:

    <cc1:CalendarExtender ID="toDate" runat="server" TargetControlID="txtDate" Format="MM/dd/yyyy" OnClientShowing="setDefaultDate" />
    

    in javascript:

    function setDefaultDate(sender,args)
    {
        if(sender._textbox.get_element().value == "")
        {
            var selectedDate = new Date(); //here i am using current date but you can get the selected date of From Calendar control and add +2 days
            sender._selectedDate = selectedDate;
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I currently have a query similar to: SELECT users.fname, users.lname, sales.date FROM users LEFT
How do I subtract 30 days from a date in PowerBuilder? I have the
I have a query: SELECT ID FROM requests WHERE date <operator> <expression> I need
I have a web form which has dynamic table using repeating rows. New rows
We have a function that pulls the date from the first 8 characters of
i have a combobox which is displaying date from database...in my database the date
I have a function that returns a date from a stored procedure, and it
I have this script: select name,create_date,modify_date from sys.procedures order by modify_date desc I can
I'm writing a bat script and I have to save the date from a
I have a string from an email header, like Date: Mon, 27 Oct 2008

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.