Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Date Format
Message
 
To
06/08/2003 14:13:05
Mindy Shingara
Central Susquehanna Intermediate Unit
Lewisburg, Pennsylvania, United States
General information
Forum:
ASP.NET
Category:
Other
Title:
Miscellaneous
Thread ID:
00817419
Message ID:
00817800
Views:
20
>How can we automatically display the slashes between month and day and day and year in a date field? Currently our users will have to manually type the slashes. Is there a property to set? For example....if I type 08062003, I want my field to display 08/06/2003. Please help!

Alas, there is no property for specifying an input format. Use a masked input control. http://www.codetools.com/cs/miscctrl/maskedcsedit.asp

For formatting your textboxes, see the Binding.Format event. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformsbindingclassformattopic.asp
and Binding.Parse event http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformsbindingclassparsetopic.asp
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform