Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
boess authored Feb 21, 2017
1 parent 7d67f87 commit ddd181e
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,20 @@ This widget allows users to quickly enter dates.

## Description

The user can enter the date in any of the following formats:
The user can use shorter date formats to quickly input dates.
The sequence of the months and days is determined on the date format of the projects.

### DDMM
### DDMM or MMDD
The year will be determined based on the setting of the "Current Year" boolean. By default the "Current Year" is set to true and the missing year information will be interpreted as the current year. When the "Current Year" is set to false the date will be interpreted as the current or next possible date.

### DDMMYY
### DDMMYY or MMDDYY
The date is considered to be in the current century.

### DDMMYYYY
### DDMMYYYY MMDDYYYY
There is no information missing.

## Example use
*All dates are in the DD/MM/YYYY format.*
*All example dates are in the DD/MM/YYYY format.*

|System Date|Input|CurrentYear|Output|
|---|---|---|---|
Expand All @@ -26,5 +27,5 @@ There is no information missing.
|27/03/2016|26032021|not applicable|26/03/2021|

## Validations
Any seperators used in the input are ignored. The output date uses /'s as seperator.
Validation errors are shown when the input contains letters or when the input can not result in a valid date (e.g. 29/02/2001).
Any seperators used in the input are ignored. The output date is formatted with the format of the project.
Validation errors are shown when the input contains letters or when the input can not result in a valid date (e.g. 29/02/2001).

0 comments on commit ddd181e

Please sign in to comment.