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
830
Time Reverting To Old Value On DateTime Editor
posted

I am using a WinDatetimeEditor and displaying the date and time. I have a mask on the editor
 {LOC}dd/mm/yyyy hh:mm.

If the User sets the hours but leaves the minutes blank, when they leave the editor it reverts to the previous time entered, presumably because it sees the blank minutes as an invalid. The behaviour I want is that if the minutes are left blank then for them to be set to 00. What is the best way to acheive this ?

Thanks for your help
john

Parents
No Data
Reply
  • 37774
    Suggested Answer
    posted

    John,

    I just tried this out and this worked correctly for me.  I tried changing various values in the control, all without exiting edit mode (including changing the hours), then deleting the digits in the minutes section, and when I tabbed out of the control the minues were now "00".  What version of the controls are you using?  It's possible that something was fixed in the latest service release.  You might also want to look at the InvalidTextBehavior property, though I didn't have to alter this in my test.

    -Matt

Children