This project has moved and is read-only. For the latest updates, please go here.

DateTimePicker Format Changed when lost focus

Jan 3, 2013 at 10:25 AM

When Rendered the first time, the format is like: "2013-1-3 18:18:18",

But after editing the time and loar focus of the DateTimePicker,

the format changed to "1/3/2013 6:18:18 PM",

Q:

How to prevent the format from being changed?

It seems that the

    Format="Custom", FormatString="yyyy-MM-dd HH:mm:ss"

setting is useless.

Jan 3, 2013 at 11:24 AM

Problem solved,

Bind the DateTime data to the Value Property of the DateTimePicker other than the Text Property,

then it will work fine.