Click here to Skip to main content
15,891,777 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
How to change the date format of textbox in gridview Edit Item Template

current format 11/10/2011 12:00:00

need to change MM-dd-yyyy

Thanks
Posted

You have to change it runtime or in expression
Please read below article to learn more about date formatting in C#
http://msdn.microsoft.com/en-us/library/8kb3ddd4.aspx[^]
 
Share this answer
 
v2
Comments
Anuja Pawar Indore 6-Feb-12 3:23am    
Added link tag and removed pre tag
RDBurmon 6-Feb-12 3:34am    
Thank you Anuja :)
You have to change it runtime or in expression


Please read below article to learn more about date formmating in C#


http://msdn.microsoft.com/en-us/library/8kb3ddd4.aspx
 
Share this answer
 
Hi,

I suggest you to use MaskedEdit Extender[^] from AjaxControlToolKit [^].
That way you have validation and your site will be more usable...
Examples how each control is used are provided on their site!
 
Share this answer
 
Comments
Tech Code Freak 6-Feb-12 6:42am    
5up!

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