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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T05:26:26+00:00 2026-05-16T05:26:26+00:00

Using ASP.Net & C# I want to use a datetimepicker in my web page,

  • 0

Using ASP.Net & C#

I want to use a datetimepicker in my web page, i cannot find the control, How to get a datetime picker control in the web page.

Can any provide a sample code.

Need C# code Help.

  • 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-16T05:26:27+00:00Added an answer on May 16, 2026 at 5:26 am

    If you don’t mind of using jQuery you can just use a textbox and covert it into a Date and time picker with jQuery.

    more explanation on how to use on the jQuery site:
    http://plugins.jquery.com/project/timepicker-addon

    Just include 3 javascript references to the page

    <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
    <script type="text/javascript" src="js/jquery-ui-1.8.custom.min.js"></script>
    <script type="text/javascript" src="js/jquery-ui-timepicker-addon-0.5.min.js"></script>
    

    the use the plugin as shown in the code below

    // date and time
    $('input').datetimepicker({...});
    // or just time
    $('input').timepicker({...});
    

    EDIT: (added urls to the javascript files)

    the Javascript files can be downloaded from the urls below:

    http://trentrichardson.com/examples/timepicker/js/jquery-1.4.2.min.js

    http://trentrichardson.com/examples/timepicker/js/jquery-ui-1.8.custom.min.js

    http://trentrichardson.com/examples/timepicker/js/jquery-ui-timepicker-addon-0.5.min.js

    EXTRA EXAMPLE:

    <div class="example-container">
      <p>Show time in AM/PM 12 hour format</p>
      <div>
         <input type="text" id="example2" value="" />
      </div>
      <script type="text/javascript">
        $('#example2').datetimepicker({ampm: true});
      </script>
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've created an web authentication app using c# & asp.net and want to bounce
The application is planned to be built using ASP.NET, .NET Remoting & MS SQL
We are using C#, ASP.NET & WCF. I am trying to send form data
Is there an ASP.NET AJAX framework other than just using UpdatePanel & Friends or
Using ASP.NET MVC there are situations (such as form submission) that may require a
Using asp.net, I need to generate a snapshot of an youtube video. I have
Using ASP.net 2.0, how do I present the information to the user similar to
Using ASP.net, how do you write ANSI characters to a text file? I need
Using asp.net MVC I'd like to do this inside a view: <%= Html.TextBox(textbox1, null,
I am using ASP.NET Dynamic Data for a project and I have a table

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.