Skip to content

Commit 8495099

Browse files
docs: fix example imports
1 parent 7ab78d4 commit 8495099

File tree

4 files changed

+51
-51
lines changed

4 files changed

+51
-51
lines changed

docs/date-formatting/index.md

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -18,103 +18,103 @@ Date formatting converts a `Date` object to a human-readable string using the lo
1818

1919
The `"d"` specifier renders a short date pattern—`"M/d/y"` for en.
2020

21-
import { formatDate } from '@telerik/kendo-intl/dates';
21+
import { formatDate } from '@telerik/kendo-intl';
2222

2323
formatDate(new Date(2000, 10, 6), "d"); // 10/6/2000
2424

2525
**The `D` specifier**
2626

2727
The `"D"` specifier renders a long date pattern—`"EEEE, MMMM d, y"` for en.
2828

29-
import { formatDate } from '@telerik/kendo-intl/dates';
29+
import { formatDate } from '@telerik/kendo-intl';
3030

3131
formatDate(new Date(2000, 10, 6), "D"); // Monday, November 6, 2000
3232

3333
**The `F` specifier**
3434

3535
The `"F"` specifier renders a full date and time pattern—`"EEEE, MMMM d, y h:mm:ss a"` for en.
3636

37-
import { formatDate } from '@telerik/kendo-intl/dates';
37+
import { formatDate } from '@telerik/kendo-intl';
3838

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

4141
**The `g` specifier**
4242

4343
The `"g"` specifier renders a general date and time pattern (short time)—`"M/d/y h:mm a"` for en.
4444

45-
import { formatDate } from '@telerik/kendo-intl/dates';
45+
import { formatDate } from '@telerik/kendo-intl';
4646

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

4949
**The `G` specifier**
5050

5151
The `"G"` specifier renders a general date and time pattern (long time)—`"M/d/y h:mm:ss a"` for en.
5252

53-
import { formatDate } from '@telerik/kendo-intl/dates';
53+
import { formatDate } from '@telerik/kendo-intl';
5454

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

5757
**The `M` specifier**
5858

5959
Renders a wide month and day pattern—`"MMMM d"` for en.
6060

61-
import { formatDate } from '@telerik/kendo-intl/dates';
61+
import { formatDate } from '@telerik/kendo-intl';
6262

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

6565
**The `m` specifier**
6666

6767
Renders an abbreviated month and day pattern—`"MMM d"` for en.
6868

69-
import { formatDate } from '@telerik/kendo-intl/dates';
69+
import { formatDate } from '@telerik/kendo-intl';
7070

7171
formatDate(new Date(2000, 10, 6), "m"); // Nov 6
7272

7373
**The `Y` specifier**
7474

7575
Renders a wide month and year pattern—`"MMMM y"` for en.
7676

77-
import { formatDate } from '@telerik/kendo-intl/dates';
77+
import { formatDate } from '@telerik/kendo-intl';
7878

7979
formatDate(new Date(2000, 10, 6), "Y"); // November 2000
8080

8181
**The `y` specifier**
8282

8383
Renders an abbreviated month/year pattern—`"MMM y"` for en.
8484

85-
import { formatDate } from '@telerik/kendo-intl/dates';
85+
import { formatDate } from '@telerik/kendo-intl';
8686

8787
formatDate(new Date(2000, 10, 6), "y"); // Nov 2000
8888

8989
**The `t` specifier**
9090

9191
The `"t"` specifier renders a short time pattern—`"h:mm a"` for en.
9292

93-
import { formatDate } from '@telerik/kendo-intl/dates';
93+
import { formatDate } from '@telerik/kendo-intl';
9494

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

9797
**The `T` specifier**
9898

9999
The `"T"` specifier renders a long time pattern—`"h:mm:ss a"` for en.
100100

101-
import { formatDate } from '@telerik/kendo-intl/dates';
101+
import { formatDate } from '@telerik/kendo-intl';
102102

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

105105
**The `s` specifier**
106106

107107
The `"s"` specifier renders universal sortable _local_ date and time pattern—`"yyyy-MM-dd HH:mm:ss"`.
108108

109-
import { formatDate } from '@telerik/kendo-intl/dates';
109+
import { formatDate } from '@telerik/kendo-intl';
110110

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

113113
**The `u` specifier**
114114

115115
The `"u"` specifier renders universal sortable _UTC_ date and time pattern—`"yyyy-MM-dd HH:mm:ssZ"`.
116116

117-
import { formatDate } from '@telerik/kendo-intl/dates';
117+
import { formatDate } from '@telerik/kendo-intl';
118118

119119
formatDate(new Date(2000, 10, 6), "u"); // 2000-11-06 00:00:00Z
120120

@@ -126,15 +126,15 @@ The following specifiers can be used in the custom formats.
126126

127127
The `"G"` specifier renders the era name. Use one to three letters for the abbreviated name, four letters for (wide) name, and five for the narrow name.
128128

129-
import { formatDate } from '@telerik/kendo-intl/dates';
129+
import { formatDate } from '@telerik/kendo-intl';
130130

131131
formatDate(new Date(2000, 0, 1), "y G"); // 2000 AD
132132

133133
**The `"y"` specifier**
134134

135135
The `"y"` specifier renders the year. Use one letter to render the full year, two letters to render a two-digit year, and three or four letters to render a zero-padded year, if necessary.
136136

137-
import { formatDate } from '@telerik/kendo-intl/dates';
137+
import { formatDate } from '@telerik/kendo-intl';
138138

139139
formatDate(new Date(2000, 0, 1), "y"); // 2000
140140

@@ -146,7 +146,7 @@ The `"y"` specifier renders the year. Use one letter to render the full year, tw
146146

147147
The `"Q"` specifier renders a quarter of the year. Use one or two letters for the numerical quarter, three for the abbreviation, four for the wide name, and five for the narrow name.
148148

149-
import { formatDate } from '@telerik/kendo-intl/dates';
149+
import { formatDate } from '@telerik/kendo-intl';
150150

151151
formatDate(new Date(2000, 0, 1), "Q"); // 1
152152

@@ -164,7 +164,7 @@ It is the same as the `"Q"` specifier, but uses the standalone names.
164164

165165
The `"M"` specifier renders the month. Use one or two letters for the numerical month, three for the abbreviation, four for the wide name, and five for the narrow name. With two letters, the month number is rendered as zero-padded.
166166

167-
import { formatDate } from '@telerik/kendo-intl/dates';
167+
import { formatDate } from '@telerik/kendo-intl';
168168

169169
formatDate(new Date(2000, 0, 1), "M"); // 1
170170

@@ -184,7 +184,7 @@ It is the same as the `"M"` specifier, but uses the standalone names.
184184

185185
The `"d"` specifier renders the day of the month. Use `"d"` to show the minimum number of digits, or `"dd"` to always show two digits (zero-padding, if necessary—for example, "08").
186186

187-
import { formatDate } from '@telerik/kendo-intl/dates';
187+
import { formatDate } from '@telerik/kendo-intl';
188188

189189
formatDate(new Date(2000, 0, 1), "y d"); // 2000 1
190190

@@ -194,7 +194,7 @@ The `"d"` specifier renders the day of the month. Use `"d"` to show the minimum
194194

195195
The `"E"` specifier renders the day of the week. Use one through three letters for the abbreviated day name, four for the wide name, five for the narrow name, and six for the short name.
196196

197-
import { formatDate } from '@telerik/kendo-intl/dates';
197+
import { formatDate } from '@telerik/kendo-intl';
198198

199199
formatDate(new Date(2000, 0, 1), "E"); // Sat
200200

@@ -208,7 +208,7 @@ The `"E"` specifier renders the day of the week. Use one through three letters f
208208

209209
It is the same as the `"E"` specifier except for its adding a numeric value that depends on the local starting day of the week, using one or two letters. The format requires the loading of the supplemental `weekData`.
210210

211-
import { formatDate } from '@telerik/kendo-intl/dates';
211+
import { formatDate } from '@telerik/kendo-intl';
212212

213213
formatDate(new Date(2000, 0, 1), "e"); // 7
214214

@@ -220,7 +220,7 @@ It is the same as the `"e"` specifier,but uses the standalone names.
220220

221221
The `"a"` specifier renders the day period. Use one through three letters for the short name, four for the wide name, and five for the narrow name.
222222

223-
import { formatDate } from '@telerik/kendo-intl/dates';
223+
import { formatDate } from '@telerik/kendo-intl';
224224

225225
formatDate(new Date(2000, 0, 1), "a"); // AM
226226

@@ -232,7 +232,7 @@ The `"a"` specifier renders the day period. Use one through three letters for th
232232

233233
The `"h"` specifier renders the hour using a 12-hour clock from 1 to 12. Use `"h"` to show the minimum number of digits, or `"hh"` to always show two digits.
234234

235-
import { formatDate } from '@telerik/kendo-intl/dates';
235+
import { formatDate } from '@telerik/kendo-intl';
236236

237237
formatDate(new Date(2000, 0, 1, 13), "h a"); // 1 PM
238238

@@ -242,7 +242,7 @@ The `"h"` specifier renders the hour using a 12-hour clock from 1 to 12. Use `"h
242242

243243
The `"H"` specifier renders the hour using a 24-hour clock from 1 to 23. Use `"H"` to show the minimum number of digits, or `"HH"` to always show two digits.
244244

245-
import { formatDate } from '@telerik/kendo-intl/dates';
245+
import { formatDate } from '@telerik/kendo-intl';
246246

247247
formatDate(new Date(2000, 0, 1, 1), "H:mm"); // 1:00
248248

@@ -252,7 +252,7 @@ The `"H"` specifier renders the hour using a 24-hour clock from 1 to 23. Use `"H
252252

253253
The `"m"` specifier renders the minutes from 0 through 59. Use `"m"` to show the minimum number of digits, or `"mm"` to always show two digits.
254254

255-
import { formatDate } from '@telerik/kendo-intl/dates';
255+
import { formatDate } from '@telerik/kendo-intl';
256256

257257
formatDate(new Date(2000, 0, 1, 1, 1), "H:m"); // 1:1
258258

@@ -262,7 +262,7 @@ The `"m"` specifier renders the minutes from 0 through 59. Use `"m"` to show the
262262

263263
The `"s"` specifier renders the seconds from 0 through 59. Use `"s"` to show the minimum number of digits, or `"s"` to always show two digits.
264264

265-
import { formatDate } from '@telerik/kendo-intl/dates';
265+
import { formatDate } from '@telerik/kendo-intl';
266266

267267
formatDate(new Date(2000, 0, 1, 1, 1, 1), "HH:mm:s"); // 01:01:1
268268

@@ -272,7 +272,7 @@ The `"s"` specifier renders the seconds from 0 through 59. Use `"s"` to show the
272272

273273
The `"S"` specifier renders the fractional seconds. It truncates based on the number of letters.
274274

275-
import { formatDate } from '@telerik/kendo-intl/dates';
275+
import { formatDate } from '@telerik/kendo-intl';
276276

277277
formatDate(new Date(2000, 0, 1, 1, 1, 1, 123), "s.S"); // 1.1
278278

@@ -284,7 +284,7 @@ The `"S"` specifier renders the fractional seconds. It truncates based on the nu
284284

285285
The `"z"` specifier renders the timezone. Use one through three letters for the short localized GMT format, and four for the long localized GMT format.
286286

287-
import { formatDate } from '@telerik/kendo-intl/dates';
287+
import { formatDate } from '@telerik/kendo-intl';
288288

289289
formatDate(new Date(2000, 0, 1), "z"); // GMT+2
290290

@@ -294,7 +294,7 @@ The `"z"` specifier renders the timezone. Use one through three letters for the
294294

295295
The `"Z"` specifier renders the timezone. Use one through three letters to show the ISO8601 basic format with hours and minutes, four for the long localized GMT format, and five for the ISO8601 extended format.
296296

297-
import { formatDate } from '@telerik/kendo-intl/dates';
297+
import { formatDate } from '@telerik/kendo-intl';
298298

299299
formatDate(new Date(2000, 0, 1), "Z"); // +0200
300300

@@ -306,7 +306,7 @@ The `"Z"` specifier renders the timezone. Use one through three letters to show
306306

307307
The `"X"` specifier renders the timezone. Use one letter for the ISO8601 basic format with hours and optional minutes, two and four letters for the ISO8601 basic format with hours and minutes, and three and five letters for the ISO8601 extended format. The ISO8601 UTC indicator `Z` is used when the local time offset is 0 (zero).
308308

309-
import { formatDate } from '@telerik/kendo-intl/dates';
309+
import { formatDate } from '@telerik/kendo-intl';
310310

311311
formatDate(new Date(2000, 0, 1), "X"); // +02
312312

@@ -328,7 +328,7 @@ The standard formats are used by passing an object. The following types of optio
328328

329329
These are used to set the format from the calendar [`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.
330330

331-
import { formatDate } from '@telerik/kendo-intl/dates';
331+
import { formatDate } from '@telerik/kendo-intl';
332332

333333
formatDate(new Date(2000, 10, 6, 13), { time: "short" }); // 1:00 PM
334334

@@ -340,15 +340,15 @@ These are used to set the format from the calendar [`dateFormats`](http://www.un
340340

341341
These are used to set the format from the calendar [`availableFormats`](http://www.unicode.org/reports/tr35/tr35-dates.html#availableFormats_appendItems) based on the date fields that need to be displayed.
342342

343-
import { formatDate } from '@telerik/kendo-intl/dates';
343+
import { formatDate } from '@telerik/kendo-intl';
344344

345345
formatDate(new Date(2000, 10, 6, 13), { skeleton: "yMMMdEHm" }); // Mon, Nov 6, 2000, 13:00
346346

347347
**Fields formats**
348348

349349
These are similar to the skeleton formats but the required fields are set using separate options in the same way as the [`Intl.DateTimeFormat`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat) object.
350350

351-
import { formatDate } from '@telerik/kendo-intl/dates';
351+
import { formatDate } from '@telerik/kendo-intl';
352352

353353
formatDate(new Date(2000, 10, 6), { year: "numeric", month: "long" }); // November 2000
354354

docs/date-parsing/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ The formats that should be used to parse the value can be passed as parameters t
4444

4545
The example below demonstrates how to specify the parse formats.
4646

47-
import { parseDate } from '@telerik/kendo-intl/dates';
47+
import { parseDate } from '@telerik/kendo-intl';
4848

4949
parseDate("2000/11/06", "yyyy/MM/dd");
5050

0 commit comments

Comments
 (0)