Date Input
Note: Tedhi supports all locales, however this usage page assumes the use of the US locale. Notes on the differences in some other locales are included.Basic Format - "mar/1987"
Specify dates using as much detail as you wish and let Tedhi fill in the blanks.
Missing day and month components are filled in as the start of the period by default, ie: day at start of month, month at start of year.
Supports numeric and alphabet months. Supports 2-digit and 4-digit years.
Locale support:
Year, month and day are ordered according to the locale.
Omitting Years - "mar"
The year can be omitted entirely, in which case it is filled in based on the current date.
The exact year filled in depends on the configured Year Bias, the default is NEAREST:
Year Bias | Explanation |
---|---|
NEAREST | Year defaulted such that the parsed date is closest to the current date |
CURRENT | Year defaulted to the year of the current date. |
PAST/FUTURE | Year defaulted such that the parsed date is always on the current date or in the past/future |
Numeric Months and 2-digit Years - "10/5/12"
Months may be specified using numbers or names, and years may be 2-digit or 4-digit. Numeric months and 2-digit years may be used in partial dates, provided the dates can be parsed unambiguously:
Example (US locale) | Explanation |
---|---|
10/2013 | Oct 1st, 2013 |
10/13/05 | Oct 13th, 2005 |
10/13 | can't be parsed unambiguously |
Rapid Data Entry - "10052012"
Dates may be specified using the 8-digit or 6-digit rapid entry notations. Year, month, day must all be included and ordered according to the locale.
Examples:
Example (US locale) | Explanation |
---|---|
10052013 | Oct 5th, 2013 |
100513 | Oct 5th, 2013 |