Skip to content

Commit

Permalink
docs(datetime): fix grammar and improve readability (#19316)
Browse files Browse the repository at this point in the history
* docs(datetime): Fix grammar, improve readability

Fixed minor mistakes in the ion-datetime documentation

* docs(datetime): Improve readability
  • Loading branch information
swifmaneum authored and liamdebeasi committed Sep 12, 2019
1 parent 151548b commit 70ba488
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions core/src/components/datetime/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,8 @@ experience.

Ionic uses the [ISO 8601 datetime format](https://www.w3.org/TR/NOTE-datetime)
for its value. The value is simply a string, rather than using JavaScript's
`Date` object. Additionally, when using the ISO datetime format, it makes it
easier to serialize and pass within JSON objects, and sending databases a
standardized format which it can be easily parsed if need be.
`Date` object. Using the ISO datetime format makes it easy to serialize
and parse within JSON objects and databases.

An ISO format can be used as a simple year, or just the hour and minute, or get
more detailed down to the millisecond and timezone. Any of the ISO formats below
Expand All @@ -115,9 +114,9 @@ January always has a leading zero, such as `01`. Additionally, the hour is
always in the 24-hour format, so `00` is `12am` on a 12-hour clock, `13` means
`1pm`, and `23` means `11pm`.

It's also important to note that neither the `displayFormat` or `pickerFormat`
Also note that neither the `displayFormat` nor the `pickerFormat`
can set the datetime value's output, which is the value that is set by the
component's `ngModel`. The format's are merely for displaying the value as text
component's `ngModel`. The formats are merely for displaying the value as text
and the picker's interface, but the datetime's value is always persisted as a
valid ISO 8601 datetime string.

Expand Down

0 comments on commit 70ba488

Please sign in to comment.