DateTimePicker
From Visual WebGui Wiki
| This article will have a few sections added to it soon, based on the following article type skeleton: NewControlTemplate |
| This article missing it's contents and needs writing. Please help contributing to this wiki and add contents. |
Contents |
Overview
The DateTimePicker control is functionally equivialent to the Windows Forms DateTimePicker control.
Availability
The DateTimePicker is one of the Out of the Box standard controls, which means it is free and available in all Visual WebGui versions.
SDK Version highlights
Cultural settings for DateTimePicker
When setting the Format property of the DateTimePicker to for instance Short, Cultural settings will decide what format will be used. In 6.3.x and earlier versions those cultural settings were taken from the web server's regional settings, not from the cultural settings in web.config or on the thread, making it necessary to set to Format to Custom and they specifically set the CustomFormat property.
In 6.4 this is all changed, as the thread settings for cultural info decide the meaning of formats like Short.
Tips and tricks
Using DateTimePicker for Time only entry
DateTimePicker.Format = DateTimePickerFormat.Time DateTimePicker.ShowUpDown = True
Rererences
Code samples
Forum discussons
- Using two DateTimePicker controls to enter date and time
- How to implement a DateTimePicker that can handle nulls
- DateTimePicker and long discussions on different cultures and how they work with Visual WebGui DateTimePicker
- Implementing the free static Html dynarch.com calendar component in an HtmlBox
Issue tracker
Other references
- MSDN Windows Forms DateTimePicker documenation
- DataTimePicker can only popup date selection, not time
- Custom date and time format codes in .NET
- Free Dynarch.com Html calendar component (and the commercial and newer one) - thread discussion
