century specifies how the date must be expanded if it was abbreviated to one or two digits.
The property is applied to widgets to which you can enter dates.
Form XML code:
Possible values:
Associated containers, widgets and theme elements:
Influence and behavior:
Closest |
the year is expanded to the nearest date - in a past, future, or current century: Current date: 1/15/2018 User enters: 1/20/18 Current century prefix – 20: 1/20/2018 Nearest past century prefix – 19: 1/20/1918 Nearest future century prefix – 21: 1/20/2118 Logics: Of the three, 1/20/2018 is closest to the current date. Resulting expansion: 1/20/2018 |
Past |
the year is expanded to the nearest date that is definitely in the past: Current date: 1/15/2018 User enters: 1/20/18 Current century prefix – 20: 1/20/2018 Nearest past century prefix – 19: 1/20/1918 Logics: Only one variant is definitely in the past, 1/20/1918. Resulting expansion: 1/20/1918 |
Future |
the year is expanded to the nearest date that is definitely in the future: Current date: 1/15/2018 User enters: 1/20/18 Current century prefix – 20: 1/20/2018 Nearest future century prefix – 21: 1/20/2118 Logics: Both variants are definitely in the future, but 1/20/2018 is closer to the current date. Resulting expansion: 1/20/2018 |
Current |
the year is prefixed with the digits of the current century: Current date: 1/15/2018 User enters: 1/20/18 Current century prefix – 20: 1/20/2018 Resulting expansion: 1/10/2018 |
You can find more examples here or try the example program.