Click here to Skip to main content
15,890,123 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
current date format like (10-02-1990) is not accepting by textbox plz help me
Posted

1 solution

string s = System.DateTime.Now.ToString("dd-MM-yyyy");
TextBox1.Text = s ;
 
Share this answer
 
Comments
sanjaysgh 26-Oct-13 5:55am    
sir this code is not working
Atul Pachori 26-Oct-13 6:28am    
Dear
paste the error here...

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