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

The Archive Base Latest Questions

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

I have a Basic Date picker and i would like to get its value

  • 0

I have a Basic Date picker and i would like to get its value in a JavaScript method. No matter what i try it says undefined is the value. Here is my code that i am using.

                                        <BDP:BasicDatePicker runat="server" ID="bdpToDate" TextBoxStyle-Width="62px" DateFormat="dd-MM-yyyy">
                                        </BDP:BasicDatePicker>

and in the javascript method…..

        var toDate = document.getElementById('<%=bdpToDate.ClientID %>').selectedDate;// does not work

also i have tried using .selectedText and .Value behind the getElementById method and neither worked.

  • 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:05:44+00:00Added an answer on May 25, 2026 at 11:05 am

    Use value (note v should be lower case)

    var toDate = document.getElementById('<%=bdpToDate.ClientID %>_TextBox').value;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a basic class 'HistoryItem' like so: public class HistoryItem private Date startDate;
Following the Android SDK tutorials I have implemented my first basic date picker dialog.
I have a really basic question concerning unix timestamp and mysql date. I'm trying
i used basic date picker in asp.net mvc and it works fine but now
I have several models with a date attribute and for each model I'd like
I have a very basic table: <table id=ttable5 class=table-default> <thead> <tr> <th>Nombre</th> <th class=sort-date>Provincia</th>
I'm trying to do some basic date and timestamp operations in PHP and have
I am new to JavaScript, I have a very basic question. I have this
So I have a basic question of how to get a variable from the
I have a rather basic question. the date time for an entry in a

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.