Click here to Skip to main content
15,867,939 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

is there any key to change the 0900 to 09:00 using C#.

Just like we are changing like this "String.Format("{0:s}", time"
Posted
Comments
[no name] 12-Aug-12 7:37am    
Yes, http://msdn.microsoft.com/en-us/library/az4se3k1.aspx
ledtech3 12-Aug-12 9:38am    
Here is another link. I made a VB.net Forms app from this one. For Quick reference. http://msdn.microsoft.com/en-us/library/aszyst2c(v=vs.90).aspx#Y0
Changed the Link to the C# version instead of the VB.Net version.

Did you check out the links thet Wes and ledtech3 gave you, and did theu solve your problem?

http://msdn.microsoft.com/en-us/library/az4se3k1.aspx[^]

http://msdn.microsoft.com/en-us/library/aszyst2c(v=vs.90).aspx#Y0[^]

If not please give us some feedback...
 
Share this answer
 
I think you can use Mask properties as TextBox in C#:)
 
Share this answer
 

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