{"id":128550,"date":"2023-05-08T11:37:22","date_gmt":"2023-05-08T06:07:22","guid":{"rendered":"https:\/\/www.vskills.in\/certification\/tutorial\/?page_id=128550"},"modified":"2024-04-12T14:15:28","modified_gmt":"2024-04-12T08:45:28","slug":"choosing-dates-with-a-calendar","status":"publish","type":"page","link":"https:\/\/www.vskills.in\/certification\/tutorial\/choosing-dates-with-a-calendar\/","title":{"rendered":"Choosing Dates with a Calendar"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\"><strong>Choosing Dates with a Calendar<\/strong><\/h4>\n\n\n\n<p>The ASP.NET AJAX Control Toolkit provides a Calendar control that allows users to easily select a date from a pop-up calendar. The Calendar control can be easily integrated with a text box control to provide a complete date picker functionality.<\/p>\n\n\n\n<p>To use the Calendar control, follow these steps:<\/p>\n\n\n\n<p>Add the ASP.NET AJAX Control Toolkit to your project if you haven&#8217;t already. You can download the latest version from the official website.<\/p>\n\n\n\n<p>Add a reference to the toolkit in your ASP.NET page or user control by adding the following code to the &lt;head&gt; section of the page:<\/p>\n\n\n\n<p>&lt;script src=&#8221;~\/Scripts\/jquery-3.6.0.min.js&#8221;&gt;&lt;\/script&gt;<\/p>\n\n\n\n<p>&lt;script src=&#8221;~\/Scripts\/jquery-ui.min.js&#8221;&gt;&lt;\/script&gt;<\/p>\n\n\n\n<p>&lt;link href=&#8221;~\/Content\/themes\/base\/jquery-ui.min.css&#8221; rel=&#8221;stylesheet&#8221; \/&gt;<\/p>\n\n\n\n<p>&lt;link href=&#8221;~\/Content\/themes\/base\/jquery-ui.theme.min.css&#8221; rel=&#8221;stylesheet&#8221; \/&gt;<\/p>\n\n\n\n<p>&lt;script src=&#8221;~\/Scripts\/jquery-ui-timepicker-addon.min.js&#8221;&gt;&lt;\/script&gt;<\/p>\n\n\n\n<p>&lt;link href=&#8221;~\/Content\/themes\/base\/jquery-ui-timepicker-addon.min.css&#8221; rel=&#8221;stylesheet&#8221; \/&gt;<\/p>\n\n\n\n<p>This code includes the necessary JavaScript and CSS files for the jQuery UI and the timepicker addon, which is an extension to jQuery UI that provides support for time selection.<\/p>\n\n\n\n<p>Add a text box control to the page:<\/p>\n\n\n\n<p>&lt;asp:TextBox ID=&#8221;txtDate&#8221; runat=&#8221;server&#8221;&gt;&lt;\/asp:TextBox&gt;<\/p>\n\n\n\n<p>Add a CalendarExtender control to the page and configure it to use the text box control:<\/p>\n\n\n\n<p>&lt;asp:CalendarExtender ID=&#8221;calDate&#8221; runat=&#8221;server&#8221; TargetControlID=&#8221;txtDate&#8221; PopupButtonID=&#8221;btnDate&#8221; Format=&#8221;yyyy-MM-dd&#8221;&gt;&lt;\/asp:CalendarExtender&gt;<\/p>\n\n\n\n<p>This code adds a CalendarExtender control that is associated with the text box control and a button control with an ID of btnDate. The Format property is set to specify the date format to be used.<\/p>\n\n\n\n<p>Add a button control to the page that will be used to trigger the display of the calendar:<\/p>\n\n\n\n<p>&lt;asp:ImageButton ID=&#8221;btnDate&#8221; runat=&#8221;server&#8221; ImageUrl=&#8221;~\/images\/calendar.gif&#8221; \/&gt;<\/p>\n\n\n\n<p>This code adds a button control that displays an image of a calendar. When the user clicks on the button, the calendar is displayed. With these steps, you should now have a fully functional date picker control on your ASP.NET page.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Apply for ASP.NET Certification Now!!<\/h3>\n\n\n\n<p><a href=\"https:\/\/www.vskills.in\/certification\/certified-aspnet-programmer\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/www.vskills.in\/certification\/certified-aspnet-programmer<\/a><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong><a href=\"https:\/\/www.vskills.in\/certification\/tutorial\/asp-net\/\" target=\"_blank\" rel=\"noreferrer noopener\">Back to Tutorial<\/a><\/strong><\/h4>\n","protected":false},"excerpt":{"rendered":"<p>Choosing Dates with a Calendar The ASP.NET AJAX Control Toolkit provides a Calendar control that allows users to easily select a date from a pop-up calendar. The Calendar control can be easily integrated with a text box control to provide a complete date picker functionality. To use the Calendar control, follow these steps: Add the&#8230;<\/p>\n","protected":false},"author":22,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"categories":[3339],"tags":[],"class_list":["post-128550","page","type-page","status-publish","hentry","category-asp-net-2"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Choosing Dates with a Calendar - Tutorial<\/title>\n<meta name=\"description\" content=\"Choosing Dates with a Calendar\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.vskills.in\/certification\/tutorial\/choosing-dates-with-a-calendar\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Choosing Dates with a Calendar - Tutorial\" \/>\n<meta property=\"og:description\" content=\"Choosing Dates with a Calendar\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.vskills.in\/certification\/tutorial\/choosing-dates-with-a-calendar\/\" \/>\n<meta property=\"og:site_name\" content=\"Tutorial\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/vskills.in\/\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-12T08:45:28+00:00\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/choosing-dates-with-a-calendar\/\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/choosing-dates-with-a-calendar\/\",\"name\":\"Choosing Dates with a Calendar - Tutorial\",\"isPartOf\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#website\"},\"datePublished\":\"2023-05-08T06:07:22+00:00\",\"dateModified\":\"2024-04-12T08:45:28+00:00\",\"description\":\"Choosing Dates with a Calendar\",\"breadcrumb\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/choosing-dates-with-a-calendar\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.vskills.in\/certification\/tutorial\/choosing-dates-with-a-calendar\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/choosing-dates-with-a-calendar\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.vskills.in\/certification\/tutorial\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Choosing Dates with a Calendar\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#website\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/\",\"name\":\"Tutorial\",\"description\":\"Vskills - A initiative in elearning and certification\",\"publisher\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.vskills.in\/certification\/tutorial\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#organization\",\"name\":\"Vskills\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg\",\"contentUrl\":\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg\",\"width\":73,\"height\":55,\"caption\":\"Vskills\"},\"image\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/vskills.in\/\",\"https:\/\/x.com\/vskills_in\",\"https:\/\/www.linkedin.com\/company-beta\/1371554\/\",\"https:\/\/www.youtube.com\/channel\/UCMWnscxPwRF_PqXo9B7q_Tw\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Choosing Dates with a Calendar - Tutorial","description":"Choosing Dates with a Calendar","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.vskills.in\/certification\/tutorial\/choosing-dates-with-a-calendar\/","og_locale":"en_US","og_type":"article","og_title":"Choosing Dates with a Calendar - Tutorial","og_description":"Choosing Dates with a Calendar","og_url":"https:\/\/www.vskills.in\/certification\/tutorial\/choosing-dates-with-a-calendar\/","og_site_name":"Tutorial","article_publisher":"https:\/\/www.facebook.com\/vskills.in\/","article_modified_time":"2024-04-12T08:45:28+00:00","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/choosing-dates-with-a-calendar\/","url":"https:\/\/www.vskills.in\/certification\/tutorial\/choosing-dates-with-a-calendar\/","name":"Choosing Dates with a Calendar - Tutorial","isPartOf":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#website"},"datePublished":"2023-05-08T06:07:22+00:00","dateModified":"2024-04-12T08:45:28+00:00","description":"Choosing Dates with a Calendar","breadcrumb":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/choosing-dates-with-a-calendar\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.vskills.in\/certification\/tutorial\/choosing-dates-with-a-calendar\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/choosing-dates-with-a-calendar\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.vskills.in\/certification\/tutorial\/"},{"@type":"ListItem","position":2,"name":"Choosing Dates with a Calendar"}]},{"@type":"WebSite","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#website","url":"https:\/\/www.vskills.in\/certification\/tutorial\/","name":"Tutorial","description":"Vskills - A initiative in elearning and certification","publisher":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.vskills.in\/certification\/tutorial\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#organization","name":"Vskills","url":"https:\/\/www.vskills.in\/certification\/tutorial\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/","url":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg","contentUrl":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg","width":73,"height":55,"caption":"Vskills"},"image":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/vskills.in\/","https:\/\/x.com\/vskills_in","https:\/\/www.linkedin.com\/company-beta\/1371554\/","https:\/\/www.youtube.com\/channel\/UCMWnscxPwRF_PqXo9B7q_Tw"]}]}},"_links":{"self":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages\/128550","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/users\/22"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/comments?post=128550"}],"version-history":[{"count":2,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages\/128550\/revisions"}],"predecessor-version":[{"id":128552,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages\/128550\/revisions\/128552"}],"wp:attachment":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/media?parent=128550"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/categories?post=128550"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/tags?post=128550"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}