Skip to content

Commit f50b0fb

Browse files
author
dmihaylo
committed
docs: test
1 parent 351ed19 commit f50b0fb

File tree

1 file changed

+31
-17
lines changed

1 file changed

+31
-17
lines changed

docs/date-formatting/index.md

Lines changed: 31 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,79 +14,79 @@ Date formatting converts a `Date` object to a human-readable string using the lo
1414

1515
### Predefined
1616

17-
* **The `d` specifier**—Renders a short date pattern—`"M/d/y"` for en.
17+
* **The `d` specifier**—Renders a short date pattern: `"M/d/y"` for en.
1818

1919
import { formatDate } from '@telerik/kendo-intl';
2020

2121
formatDate(new Date(2000, 10, 6), "d"); // 10/6/2000
2222

23-
* **The `D` specifier**—Renders a long date pattern—`"EEEE, MMMM d, y"` for en.
23+
* **The `D` specifier**—Renders a long date pattern: `"EEEE, MMMM d, y"` for en.
2424

2525
import { formatDate } from '@telerik/kendo-intl';
2626

2727
formatDate(new Date(2000, 10, 6), "D"); // Monday, November 6, 2000
2828

29-
* **The `F` specifier**—Renders a full date and time pattern—`"EEEE, MMMM d, y h:mm:ss a"` for en.
29+
* **The `F` specifier**—Renders a full date and time pattern: `"EEEE, MMMM d, y h:mm:ss a"` for en.
3030

3131
import { formatDate } from '@telerik/kendo-intl';
3232

3333
formatDate(new Date(2000, 10, 6), "F"); // Monday, November 6, 2000 12:00:00 AM
3434

35-
* **The `g` specifier**—Renders a general date and time pattern (short time)—`"M/d/y h:mm a"` for en.
35+
* **The `g` specifier**—Renders a general date and time pattern (short time): `"M/d/y h:mm a"` for en.
3636

3737
import { formatDate } from '@telerik/kendo-intl';
3838

3939
formatDate(new Date(2000, 10, 6), "g"); // 11/6/2000 12:00 AM
4040

41-
* **The `G` specifier**—Renders a general date and time pattern (long time)—`"M/d/y h:mm:ss a"` for en.
41+
* **The `G` specifier**—Renders a general date and time pattern (long time): `"M/d/y h:mm:ss a"` for en.
4242

4343
import { formatDate } from '@telerik/kendo-intl';
4444

4545
formatDate(new Date(2000, 10, 6), "G"); // 11/6/2000 12:00:00 AM
4646

47-
* **The `M` specifier**—Renders a wide month and day pattern—`"MMMM d"` for en.
47+
* **The `M` specifier**—Renders a wide month and day pattern: `"MMMM d"` for en.
4848

4949
import { formatDate } from '@telerik/kendo-intl';
5050

5151
formatDate(new Date(2000, 10, 6), "M"); // November 6
5252

53-
* **The `m` specifier**—Renders an abbreviated month and day pattern—`"MMM d"` for en.
53+
* **The `m` specifier**—Renders an abbreviated month and day pattern: `"MMM d"` for en.
5454

5555
import { formatDate } from '@telerik/kendo-intl';
5656

5757
formatDate(new Date(2000, 10, 6), "m"); // Nov 6
5858

59-
* **The `Y` specifier**—Renders a wide month and year pattern—`"MMMM y"` for en.
59+
* **The `Y` specifier**—Renders a wide month and year pattern: `"MMMM y"` for en.
6060

6161
import { formatDate } from '@telerik/kendo-intl';
6262

6363
formatDate(new Date(2000, 10, 6), "Y"); // November 2000
6464

65-
* **The `y` specifier**—Renders an abbreviated month/year pattern—`"MMM y"` for en.
65+
* **The `y` specifier**—Renders an abbreviated month/year pattern: `"MMM y"` for en.
6666

6767
import { formatDate } from '@telerik/kendo-intl';
6868

6969
formatDate(new Date(2000, 10, 6), "y"); // Nov 2000
7070

71-
* **The `t` specifier**—Renders a short time pattern—`"h:mm a"` for en.
71+
* **The `t` specifier**—Renders a short time pattern: `"h:mm a"` for en.
7272

7373
import { formatDate } from '@telerik/kendo-intl';
7474

7575
formatDate(new Date(2000, 10, 6, 14, 30, 45), "t"); // 2:30 PM
7676

77-
* **The `T` specifier**—Renders a long time pattern—`"h:mm:ss a"` for en.
77+
* **The `T` specifier**—Renders a long time pattern: `"h:mm:ss a"` for en.
7878

7979
import { formatDate } from '@telerik/kendo-intl';
8080

8181
formatDate(new Date(2000, 10, 6, 14, 30, 45), "T"); // 2:30:45 PM
8282

83-
* **The `s` specifier**—Renders a universal sortable local date and time pattern—`"yyyy-MM-dd HH:mm:ss"`.
83+
* **The `s` specifier**—Renders a universal sortable local date and time pattern: `"yyyy-MM-dd HH:mm:ss"`.
8484

8585
import { formatDate } from '@telerik/kendo-intl';
8686

8787
formatDate(new Date(2000, 10, 6), "s"); // 2000-11-06T00:00:00
8888

89-
* **The `u` specifier**—Renders a universal sortable UTC date and time pattern—`"yyyy-MM-dd HH:mm:ssZ"`.
89+
* **The `u` specifier**—Renders a universal sortable UTC date and time pattern: `"yyyy-MM-dd HH:mm:ssZ"`.
9090

9191
import { formatDate } from '@telerik/kendo-intl';
9292

@@ -97,6 +97,7 @@ Date formatting converts a `Date` object to a human-readable string using the lo
9797
The following specifiers can be used in the custom formats.
9898

9999
* **The `"G"` specifier**—Renders the era name.
100+
100101
For the abbreviated name, use one to three letters. For the wide name, use four letters. For the narrow name, use five letters.
101102

102103
import { formatDate } from '@telerik/kendo-intl';
@@ -132,7 +133,9 @@ The following specifiers can be used in the custom formats.
132133
* **The `"q"` specifier**—The same as the `"Q"` specifier except that the `"q"` specifier uses the standalone names.
133134

134135
* **The `"M"` specifier**—Renders the month.
136+
135137
For the numerical month, use one or two letters. For the abbreviation, use three letters. For the wide name, use four letters. For the narrow name, use five letters.
138+
136139
When you use two letters, the month number is rendered as zero-padded.
137140

138141
import { formatDate } from '@telerik/kendo-intl';
@@ -150,6 +153,7 @@ The following specifiers can be used in the custom formats.
150153
* **The `"L"` specifier**—The same as the `"M"` specifier except that the `"L"` specifier uses the standalone names.
151154

152155
* **The `"d"` specifier**—Renders the day of the month.
156+
153157
To show the minimum number of digits, use `"d"`. To always show two digits, use `"dd"` (zero-padding, if necessary—for example, "08").
154158

155159
import { formatDate } from '@telerik/kendo-intl';
@@ -159,6 +163,7 @@ The following specifiers can be used in the custom formats.
159163
formatDate(new Date(2000, 0, 1), "y dd"); // 2000 01
160164

161165
* **The `"E"` specifier**—Renders the day of the week.
166+
162167
For the abbreviated day name, use one through three letters. For the wide name, use four letters. For the narrow name, use five letters. For the short name, use six letters.
163168

164169
import { formatDate } from '@telerik/kendo-intl';
@@ -180,6 +185,7 @@ The following specifiers can be used in the custom formats.
180185
* **The `"c"` specifier**—The same as the `"e"` specifier except that uses the standalone names.
181186

182187
* **The `"a"` specifier**—Renders the day period.
188+
183189
For the short name, use one through three letters. For the wide name, use four letters. For the narrow name, use five letters.
184190

185191
import { formatDate } from '@telerik/kendo-intl';
@@ -191,6 +197,7 @@ The following specifiers can be used in the custom formats.
191197
formatDate(new Date(2000, 0, 1, 13), "aaaaa"); // p
192198

193199
* **The `"h"` specifier**—Renders the hour using a 12-hour clock from 1 to 12.
200+
194201
To show the minimum number of digits, use `"h"`. To always show two digits, use `"hh"`.
195202

196203
import { formatDate } from '@telerik/kendo-intl';
@@ -200,6 +207,7 @@ The following specifiers can be used in the custom formats.
200207
formatDate(new Date(2000, 0, 1, 13), "h a"); // 01 PM
201208

202209
* **The `"H"` specifier**—Renders the hour using a 24-hour clock from 1 to 23.
210+
203211
To show the minimum number of digits, use `"H"`. To always show two digits, use `"HH"`.
204212

205213
import { formatDate } from '@telerik/kendo-intl';
@@ -209,6 +217,7 @@ The following specifiers can be used in the custom formats.
209217
formatDate(new Date(2000, 0, 1, 13), "HH:mm"); // 13:00
210218

211219
* **The `"m"` specifier**—Renders the minutes from 0 through 59.
220+
212221
To show the minimum number of digits, use `"m"`. To always show two digits, use `"mm"`.
213222

214223
import { formatDate } from '@telerik/kendo-intl';
@@ -218,6 +227,7 @@ The following specifiers can be used in the custom formats.
218227
formatDate(new Date(2000, 0, 1, 1, 1), "H:mm"); // 1:01
219228

220229
* **The `"s"` specifier**—Renders the seconds from 0 through 59.
230+
221231
To show the minimum number of digits, use `"s"`. To always show two digits, use `"ss"`.
222232

223233
import { formatDate } from '@telerik/kendo-intl';
@@ -237,6 +247,7 @@ The following specifiers can be used in the custom formats.
237247
formatDate(new Date(2000, 0, 1, 1, 1, 1, 123), "s.SSS"); // 1.123
238248

239249
* **The `"z"` specifier**—Renders the timezone.
250+
240251
For the short localized GMT format, use one through three letters. For the long localized GMT format, use four letters.
241252

242253
import { formatDate } from '@telerik/kendo-intl';
@@ -246,6 +257,7 @@ The following specifiers can be used in the custom formats.
246257
formatDate(new Date(2000, 0, 1), "zzzz"); // GMT+02:00
247258

248259
* **The `"Z"` specifier**—Renders the timezone.
260+
249261
To show the ISO8601 basic format with hours and minutes, use one through three letters. For the long localized GMT format, use four letters. For the ISO8601 extended format, use five letters.
250262

251263
import { formatDate } from '@telerik/kendo-intl';
@@ -257,8 +269,10 @@ The following specifiers can be used in the custom formats.
257269
formatDate(new Date(2000, 0, 1), "ZZZZZ"); // +02:00
258270

259271
* **The `"X"` specifier**—Renders the timezone.
272+
260273
For the ISO8601 basic format with hours and optional minutes, use one letter. For the ISO8601 basic format with hours and minutes, use two letters and four letters. For the ISO8601 extended format, use three and five letters.
261-
The ISO8601 UTC indicator `Z` is used when the local time offset is `0` (zero).
274+
275+
When the local time offset is `0` (zero), use the ISO8601 UTC indicator `Z`.
262276

263277
import { formatDate } from '@telerik/kendo-intl';
264278

@@ -270,15 +284,15 @@ The following specifiers can be used in the custom formats.
270284

271285
formatDate(new Date(2000, 0, 1), "XXX"); // +02:00
272286

273-
* **The `"x"` specifier**—The same as the `"X"` specifier, but without adding the UTC indicator when the offset is 0 (zero).
287+
* **The `"x"` specifier**—The same as the `"X"` specifier except that the `"x"` specifier does not add the UTC indicator when the offset is `0` (zero).
274288

275289
### Standard
276290

277291
The standard formats are used when passing an object.
278292

279293
The supported types of options are:
280294

281-
* **Locale predefined formats**—Used to set the format from the [`dateFormats`](http://www.unicode.org/reports/tr35/tr35-dates.html#dateFormats), [`timeFormats`](http://www.unicode.org/reports/tr35/tr35-dates.html#timeFormats), and [`dateTimeFormats`](http://www.unicode.org/reports/tr35/tr35-dates.html#dateTimeFormats) elements of the calendar.
295+
* **Locale predefined formats**—Sets the format from the [`dateFormats`](http://www.unicode.org/reports/tr35/tr35-dates.html#dateFormats), [`timeFormats`](http://www.unicode.org/reports/tr35/tr35-dates.html#timeFormats), and [`dateTimeFormats`](http://www.unicode.org/reports/tr35/tr35-dates.html#dateTimeFormats) elements of the calendar.
282296

283297
import { formatDate } from '@telerik/kendo-intl';
284298

@@ -288,7 +302,7 @@ The supported types of options are:
288302

289303
formatDate(new Date(2000, 10, 6, 13), { datetime: "full" }); // Monday, November 6, 2000 at 1:00:00 PM GMT+02:00
290304

291-
* **Skeleton formats**—Used to set the format from the [`availableFormats`](http://www.unicode.org/reports/tr35/tr35-dates.html#availableFormats_appendItems) of the calendar based on the date fields that you want to display.
305+
* **Skeleton formats**—Sets the format from the [`availableFormats`](http://www.unicode.org/reports/tr35/tr35-dates.html#availableFormats_appendItems) of the calendar based on the date fields that you want to display.
292306

293307
import { formatDate } from '@telerik/kendo-intl';
294308

0 commit comments

Comments
 (0)