Click here to Skip to main content
15,892,768 members
Please Sign up or sign in to vote.
1.44/5 (2 votes)
See more:
In my project i want to display and select date In ASP.net there are no datetimepicker tool how to get it in ASP.net .Please anyone can help me

Thank you
Posted

XML
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>jQuery UI Datepicker - Default functionality</title>
    <link rel="stylesheet" href="http://jqueryui.com/themes/base/jquery.ui.all.css">
    <script src="http://jqueryui.com/jquery-1.6.2.js"></script>
    <script src="http://jqueryui.com/ui/jquery.ui.core.js"></script>
    <script src="http://jqueryui.com/ui/jquery.ui.widget.js"></script>
    <script src="http://jqueryui.com/ui/jquery.ui.datepicker.js"></script>
    <link rel="stylesheet" href="http://jqueryui.com/demos/demos.css">
    <script>
    $(function() {
        $( "#datepicker" ).datepicker();
    });
    </script>
</head>
<body>

<div class="demo">

<p>Date: <input type="text" id="datepicker"></p>

</div><!-- End demo -->



<div class="demo-description">
<p>The datepicker is tied to a standard form input field.  Focus on the input (click, or use the tab key) to open an interactive calendar in a small overlay.  Choose a date, click elsewhere on the page (blur the input), or hit the Esc key to close. If a date is chosen, feedback is shown as the input's value.</p>
</div><!-- End demo-description -->

</body>
</html>
 
Share this answer
 
you can use calender control available in the tool box. you can also use the Calender extender Ajax control.

check these links..

Calender Web control[^]

Ajax Calender Extender[^]

Calender[^]

Calender Class[^]

hope this helps..
 
Share this answer
 
Comments
thatraja 22-Dec-11 8:22am    
5!
In asp.net thers is no datetime picker control . there is calender control.
if you want to add datetime picker control then u have to add ajax extenders
 
Share this answer
 
hi

you can use custom data time picker control

Sample

More control

obout control
 
Share this answer
 
v2
Try this:

DateTimePicker Web Control[^]

hope it helps :)
 
Share this answer
 
Comments
thatraja 22-Dec-11 8:22am    
5!
Alternatively you may use Javascript/jQuery date-pickers

jsDatePick[^]
You can find more in Google.
 
Share this answer
 
Comments
Karthik Harve 22-Dec-11 1:06am    
nice link.. my 5!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900