Click here to Skip to main content
13,357,552 members (28,153 online)
Rate this:
Please Sign up or sign in to vote.
See more:
Dear sir
Please how can I change the format of the textbox to date format
Thanks in advance
Posted 28-Dec-12 1:15am
Sandeep Mewara 28-Dec-12 6:20am
You should have been more clearer on what you have tried so far and where are you stuck.
Aarti Meswania 28-Dec-12 6:23am
want to just display
or want to write date manually in textbox?
Member 8697827 28-Dec-12 6:28am
I want to write the date in the textbox and display it also in the same textbox also i have database that save this date so how can I make it
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

You can use a masked textbox - Masked Edit Box in[^].
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

try to use below code..
<asp:textbox id="txtStartDate" runat="server" xmlns:asp="#unknown" />
   <asp:image id="imgCalendarStartDate" runat="server" imageurl="~/admin/css/images/Calendar_scheduleHS.png" xmlns:asp="#unknown" />
   <ajax:maskededitextender id="meeStartDate" runat="server" masktype="Date" mask="99/99/9999" userdateformat="DayMonthYear" targetcontrolid="txtStartDate" promptcharacter="_" xmlns:ajax="#unknown" />
   <ajax:maskededitvalidator runat="server" controltovalidate="txtStartDate" controlextender="meeStartDate" emptyvaluemessage="Start Date is Required" invalidvaluemessage="Date is Invalid" isvalidempty="False" tooltipmessage="Input a Date" xmlns:ajax="#unknown" />
   <ajax:calendarextender id="ceStartDate" runat="server" targetcontrolid="txtStartDate" format="dd/MM/yyyy" popupbuttonid="imgCalendarStartDate" xmlns:ajax="#unknown" />

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04 | 2.8.180111.1 | Last Updated 28 Dec 2012
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100