Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB.NET
Dear sir
Please how can I change the format of the textbox to date format
Thanks in advance
Dalia
Posted 28-Dec-12 0:15am
Comments
Sandeep Mewara at 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 at 28-Dec-12 6:23am
   
want to just display
or want to write date manually in textbox?
Member 8697827 at 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
good
Please Sign up or sign in to vote.

Solution 1

You can use a masked textbox - Masked Edit Box in vb.net[^].
  Permalink  
Rate this: bad
good
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" />
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 375
1 RyanDev 135
2 CHill60 120
3 Richard MacCutchan 115
4 Sergey Alexandrovich Kryukov 110


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