org.zkoss.web.preferred.2DigitYearStart"
From Documentation
(Created page with "{{ZKDevelopersReferencePageHeader}} =Overview= By default, the 2 digit year start is set to 1929. However, you can configure it different, and it will affect how [[ZK_Component...") |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | {{ | + | {{ZKConfigurationReferencePageHeader}} |
=Overview= | =Overview= | ||
− | By default, the 2 digit year start is set to 1929. | + | By default, the 2-digit year start is set to 1929. |
However, you can configure it different, and it will affect how [[ZK_Component_Reference/Input/Datebox|datebox]] and [[ZK_Component_Reference/Input/Calendar|calendar]] components behave. | However, you can configure it different, and it will affect how [[ZK_Component_Reference/Input/Datebox|datebox]] and [[ZK_Component_Reference/Input/Calendar|calendar]] components behave. | ||
− | The 2 digit year start is | + | The 2-digit year start is used for the format with "yy" pattern only, change the parse result in the 100 years span after that year. |
For example, 2 digit year start 1950 will parse [0-49] : 2000-2049 and [50-99] : 1950-1999 | For example, 2 digit year start 1950 will parse [0-49] : 2000-2049 and [50-99] : 1950-1999 | ||
Line 13: | Line 13: | ||
==2DigitYearStart== | ==2DigitYearStart== | ||
− | + | {{versionSince| 8.6.2}} | |
− | + | Only allow positive integer. For example: | |
<source lang="xml"> | <source lang="xml"> | ||
Line 34: | Line 34: | ||
|} | |} | ||
− | {{ | + | {{ZKConfigurationReferencePageFooter}} |
Latest revision as of 07:28, 8 July 2022
Overview
By default, the 2-digit year start is set to 1929.
However, you can configure it different, and it will affect how datebox and calendar components behave.
The 2-digit year start is used for the format with "yy" pattern only, change the parse result in the 100 years span after that year. For example, 2 digit year start 1950 will parse [0-49] : 2000-2049 and [50-99] : 1950-1999
If a property called org.zkoss.web.preferred.2DigitYearStart
defined in the library property (i.e., Library). If so, use it.
2DigitYearStart
Since 8.6.2
Only allow positive integer. For example:
<library-property>
<name>org.zkoss.web.preferred.2DigitYearStart</name>
<value>1950</value>
</library-property>
Version History
Version | Date | Content |
---|---|---|
8.6.2 | May 2019 | The the 2 digit year start is configurable |