Approved
Last Updated: 06 Feb 2018 15:41 by Shelly
ADMIN
Martin Ivanov
Created on: 30 Jan 2018 11:22
Category: MaskedInput
Type: Bug Report
2
MaskedInput: The DateTime input uses the last known date to set the new value even if the Mask restricts some of the date sections
For example, if you have a Mask="f", this allows you to enter long-date and short-time. The allowed value should look like this: "Sunday, December 30, 2018 12:00 PM". In other words the seconds and milliseconds are not available to enter and they should be 0. However, if you previously enter a value that contains seconds or milliseconds different than 0, they are cached in the internal LastKnowValidValue property and used when you enter a new value. So, the new value will re-use the seconds and milliseconds from the previous one.
1 comment
Shelly
Posted on: 06 Feb 2018 15:41
This problem exists for Month/Year combinations also. The day is not available to enter and should be a default day such as 1.
For example,
y - enter month / year, "January 2018" but 1/6/2018 would be used

The day that is used differs depending on last entered value. It needs to be something predictable such as a 1.

All month / year combinations exhibit this behavior. For example, MMMM yyyy .