mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
docs(datetime): fix grammar and improve readability (#19316)
* docs(datetime): Fix grammar, improve readability Fixed minor mistakes in the ion-datetime documentation * docs(datetime): Improve readability
This commit is contained in:
@@ -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
|
||||
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user