Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
400
XamDateTimeEditor is throwing validation error when year is 2000 in ‘yy’ format.
posted

Hi,

   If Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern is "dd-MMM-yy" I am getting “Value is invalid” error, when I tried to set the year to 00 using keyboard or using calendar popup (any date in year 2000).

 

<editors:XamDateTimeEditor  Width="200"                                   

FormatProvider="{Binding Source={x:Static thread:Thread.CurrentThread}, Path=CurrentCulture.DateTimeFormat}"

                                   Mask="{}{date} {time}" VerticalAlignment="Bottom"/>

 

 Is it a bug in XamDateTimeEditor ?

Is there is workaround for this situation?

 

Thanks,

Deep

 

Parents Reply Children