Alternate forms for entering dates

WPF Studio, Themes, and Shared Library for WPF Forum

Posted 13 years ago by Mick
Version: 11.1.0542
Avatar
Is there a way to specify the way dates can be entered in the DateTimePicker? I'm writing an app for heavy data entry, and I want to be able to type anyof the following:

03161980
031680
03/16/1980
03/16/80
03-16-1980
03-16-80

and get the same result.

Thanks,
Mick

Comments (1)

Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Mick,

As mentioned in the previous thread, we have a DateTimePicker.ValueConverter property you can set to another custom converter that does DateTime to string and back if you'd like to do different logic. That way you could write your own logic for determining how dates convert to strings and back. We are just using the default .NET logic if you don't change that property.


Actipro Software Support

The latest build of this product (v24.1.1) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.