Click here to Skip to main content
15,877,754 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to create a date picker. I figured out it in AJAX.I need to know the other possible ways of doing it in my asp form.Pls someone help me
Updated 20-Jul-12 1:08am
Unareshraju 20-Jul-12 7:08am    
may i know your creating custom control of datepicker?

Look here: CP articles on ASP.NET DatePickers[^]

Apart from existing control (or using AJAX), you can use jQuery/Javascript for picking up date form a calendar.
Share this answer
Try with this code ..............

<html xmlns="">
    <head runat="server">
    <title>jQuery Datepicker Demo</title>
    <style type="text/css">
            font-size: 10px;
    <link rel="stylesheet" href="" type="text/css" media="all" />
    <script src="" type="text/javascript"></script>
    <script src="" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {
                changeYear: true,
                beforeShow: function (textbox, instance) {
                    marginTop: (-textbox.offsetHeight) + 'px',
                    marginLeft: textbox.offsetWidth + 'px'
     <form id="testForm" runat="server">
            <input type="text" id="txtDateFrom" /><br />
            <input type="text" id="txtDateTo" />
Share this answer
ajithk444 26-Jul-12 3:17am    
hi sanwar.I need to get time also. any date and time picker using javascript.?
sanwar_mal_jat 26-Jul-12 3:22am    
Hello use this link may be help full......
ajithk444 26-Jul-12 3:59am    
the code u gave above was clear .I need code like that if possible.
sanwar_mal_jat 26-Jul-12 5:48am    
use this link
and down load (download by right clicking, and selecting "save as") Link in step 3 ,Create a folder and add download file and image in this folder and create a html file and past below mention code...........

<head><title>jQuery Open Calendar</title>
<link rel="stylesheet" href="ui.all.css" type="text/css" media="screen" />
<script language="JavaScript" src="ts_picker.js">

//Add download js file link



<form name="tstest">
<input type="Text" name="timestamp" value="">
<img src="cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the timestamp">

ajithk444 27-Jul-12 0:16am    
thanks buddy..

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