开发者

Date validation in WPF

I want to validate the date entered in the format dd/mm/yyyy. Using exceptio开发者_运维百科nvalidation I can validate correctly only if the date is entered in the format mm/dd/yyyy. Can anyone suggest some workarounds?


try doing two validations, i assume you are validating a string using DateTime.Parse.

On the second validation try specifying a culture which uses ddmmyyyy format, such as Australia

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜