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
精彩评论