You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/date-formatting/api.md
+20-16Lines changed: 20 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,11 +10,15 @@ position: 2
10
10
11
11
Provides information about the exported methods from the Date Formatting module.
12
12
13
+
{% platform_content angular %}
14
+
For a runnable example, refer to the article on [date and number formatting and parsing]({% parsingandformatting_intl %}#toc-date-formatting).
15
+
{% endplatform_content %}
16
+
13
17
## Methods
14
18
15
19
#### formatDate
16
20
17
-
Converts a `Date` object into a string based on the specified format and locale ([see example](https://github.com/telerik/kendo-intl/blob/master/docs/date-formatting/index.md).
21
+
Converts a `Date` object into a string based on the specified format and locale ([more information](https://github.com/telerik/kendo-intl/blob/master/docs/date-formatting/index.md).
18
22
19
23
## Parameters
20
24
@@ -32,7 +36,7 @@ Defines the skeleton format used to get the pattern from the locale calendar [`a
32
36
33
37
#### format.date `String`
34
38
35
-
Specifies which of the locale `dateFormats`should be used to format the value.
39
+
Specifies which of the locale `dateFormats`will be used to format the value.
36
40
37
41
The supported values are:
38
42
*`"short"`
@@ -42,7 +46,7 @@ The supported values are:
42
46
43
47
#### format.time `String`
44
48
45
-
Specifies which of the locale `timeFormats`should be used to format the value.
49
+
Specifies which of the locale `timeFormats`will be used to format the value.
46
50
47
51
The supported values are:
48
52
*`"short"`
@@ -52,7 +56,7 @@ The supported values are:
52
56
53
57
#### format.datetime `String`
54
58
55
-
Specifies which of the locale `dateTimeFormats`should be used to format the value.
59
+
Specifies which of the locale `dateTimeFormats`will be used to format the value.
56
60
57
61
The supported values are:
58
62
*`"short"`
@@ -62,7 +66,7 @@ The supported values are:
62
66
63
67
#### format.era `String`
64
68
65
-
Specifies how should the date era be formatted.
69
+
Specifies how will the date era be formatted.
66
70
67
71
The supported values are:
68
72
*`"narrow"`
@@ -71,15 +75,15 @@ The supported values are:
71
75
72
76
#### format.year `String`
73
77
74
-
Specifies how the date year should be formatted.
78
+
Specifies how the date year will be formatted.
75
79
76
80
The supported values are:
77
81
*`"numeric"`
78
82
*`"2-digit"`
79
83
80
84
#### format.month `String`
81
85
82
-
Specifies how the date month should be formatted.
86
+
Specifies how the date month will be formatted.
83
87
84
88
The supported values are:
85
89
*`"numeric"`
@@ -90,15 +94,15 @@ The supported values are:
90
94
91
95
#### format.day `String`
92
96
93
-
Specifies how the day of the month should be formatted.
97
+
Specifies how the day of the month will be formatted.
94
98
95
99
The supported values are:
96
100
*`"numeric"`
97
101
*`"2-digit"`
98
102
99
103
#### format.weekday `String`
100
104
101
-
Specifies how the day of the week should be formatted.
105
+
Specifies how the day of the week will be formatted.
102
106
103
107
The supported values are:
104
108
*`"narrow"`
@@ -107,7 +111,7 @@ The supported values are:
107
111
108
112
#### format.weekday `String`
109
113
110
-
Specifies how the day of the week should be formatted.
114
+
Specifies how the day of the week will be formatted.
111
115
112
116
The supported values are:
113
117
*`"narrow"`
@@ -116,35 +120,35 @@ The supported values are:
116
120
117
121
#### format.hour `String`
118
122
119
-
Specifies how the hours should be formatted.
123
+
Specifies how the hours will be formatted.
120
124
121
125
The supported values are:
122
126
*`"numeric"`
123
127
*`"2-digit"`
124
128
125
129
#### format.hour12 `Boolean`
126
130
127
-
Specifies if a 12-hour time set should be used for the formatting.
131
+
Specifies if a 12-hour time set will be used for the formatting.
128
132
129
133
#### format.minute `String`
130
134
131
-
Specifies how the minutes should be formatted.
135
+
Specifies how the minutes will be formatted.
132
136
133
137
The supported values are:
134
138
*`"numeric"`
135
139
*`"2-digit"`
136
140
137
141
#### format.second `String`
138
142
139
-
Specifies how the seconds should be formatted.
143
+
Specifies how the seconds will be formatted.
140
144
141
145
The supported values are:
142
146
*`"numeric"`
143
147
*`"2-digit"`
144
148
145
149
#### format.timeZoneName `String`
146
150
147
-
Specifies how the timezone should be formatted.
151
+
Specifies how the timezone will be formatted.
148
152
149
153
The supported values are:
150
154
*`"short"`
@@ -162,7 +166,7 @@ The formatted date.
162
166
163
167
#### splitDateFormat
164
168
165
-
Returns information about the individual segments of a format. The returned objects contain the segment type (for example, year or month), the pattern, and the information about the [dateFormatNames](https://github.com/telerik/kendo-intl/blob/master/docs/cldr/api.md#dateformatnames) that are used for the pattern.
169
+
Returns information about the individual segments of a format. The returned objects contain the segment type (for example, year or month), the pattern, and the information about the [`dateFormatNames`](https://github.com/telerik/kendo-intl/blob/master/docs/cldr/api.md#dateformatnames) that are used for the pattern.
Copy file name to clipboardExpand all lines: docs/date-parsing/api.md
+19-15Lines changed: 19 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,11 +10,15 @@ position: 2
10
10
11
11
Provides information about the exported methods from the Date Parsing module.
12
12
13
+
{% platform_content angular %}
14
+
For a runnable example, refer to the article on [date and number formatting and parsing]({% parsingandformatting_intl %}#toc-date-parsing).
15
+
{% endplatform_content %}
16
+
13
17
## Methods
14
18
15
19
#### parseDate
16
20
17
-
Converts a string into a `Date` object based on the specified format and locale ([see example](https://github.com/telerik/kendo-intl/blob/master/docs/date-parsing/index.md).
21
+
Converts a string into a `Date` object based on the specified format and locale ([more information](https://github.com/telerik/kendo-intl/blob/master/docs/date-parsing/index.md).
18
22
19
23
## Parameters
20
24
@@ -32,7 +36,7 @@ Defines the skeleton format used to get the pattern from the locale calendar [`a
32
36
33
37
#### format.date `String`
34
38
35
-
Specifies which of the locale `dateFormats`should be used to format the value.
39
+
Specifies which of the locale `dateFormats`will be used to format the value.
36
40
37
41
The supported values are:
38
42
*`"short"`
@@ -42,7 +46,7 @@ The supported values are:
42
46
43
47
#### format.time `String`
44
48
45
-
Specifies which of the locale `timeFormats`should be used to format the value.
49
+
Specifies which of the locale `timeFormats`will be used to format the value.
46
50
47
51
The supported values are:
48
52
*`"short"`
@@ -52,7 +56,7 @@ The supported values are:
52
56
53
57
#### format.datetime `String`
54
58
55
-
Specifies which of the locale `dateTimeFormats`should be used to format the value.
59
+
Specifies which of the locale `dateTimeFormats`will be used to format the value.
56
60
57
61
The supported values are:
58
62
*`"short"`
@@ -62,7 +66,7 @@ The supported values are:
62
66
63
67
#### format.era `String`
64
68
65
-
Specifies how the date era should be formatted.
69
+
Specifies how the date era will be formatted.
66
70
67
71
The supported values are:
68
72
*`"narrow"`
@@ -71,15 +75,15 @@ The supported values are:
71
75
72
76
#### format.year `String`
73
77
74
-
Specifies how the date year should be formatted.
78
+
Specifies how the date year will be formatted.
75
79
76
80
The supported values are:
77
81
*`"numeric"`
78
82
*`"2-digit"`
79
83
80
84
#### format.month `String`
81
85
82
-
Specifies how the date month should be formatted.
86
+
Specifies how the date month will be formatted.
83
87
84
88
The supported values are:
85
89
*`"numeric"`
@@ -90,15 +94,15 @@ The supported values are:
90
94
91
95
#### format.day `String`
92
96
93
-
Specifies how the day of the month should be formatted.
97
+
Specifies how the day of the month will be formatted.
94
98
95
99
The supported values are:
96
100
*`"numeric"`
97
101
*`"2-digit"`
98
102
99
103
#### format.weekday `String`
100
104
101
-
Specifies how the day of the week should be formatted.
105
+
Specifies how the day of the week will be formatted.
102
106
103
107
The supported values are:
104
108
*`"narrow"`
@@ -107,7 +111,7 @@ The supported values are:
107
111
108
112
#### format.weekday `String`
109
113
110
-
Specifies how the day of the week should be formatted.
114
+
Specifies how the day of the week will be formatted.
111
115
112
116
The supported values are:
113
117
*`"narrow"`
@@ -116,35 +120,35 @@ The supported values are:
116
120
117
121
#### format.hour `String`
118
122
119
-
Specifies how the hours should be formatted.
123
+
Specifies how the hours will be formatted.
120
124
121
125
The supported values are:
122
126
*`"numeric"`
123
127
*`"2-digit"`
124
128
125
129
#### format.hour12 `Boolean`
126
130
127
-
Specifies if a 12-hour time set should be used for the formatting.
131
+
Specifies if a 12-hour time set will be used for the formatting.
Copy file name to clipboardExpand all lines: docs/general-formatting/api.md
+7-3Lines changed: 7 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,13 +8,17 @@ position: 2
8
8
9
9
# General Formatting API
10
10
11
-
Provides information about the exported methods from the format module.
11
+
Provides information about the exported methods from the Format module.
12
+
13
+
{% platform_content angular %}
14
+
For a runnable example, refer to the article on [date and number formatting and parsing]({% parsingandformatting_intl %}#toc-general-formatting).
15
+
{% endplatform_content %}
12
16
13
17
## Methods
14
18
15
19
#### format
16
20
17
-
Replaces the format string placeholders with the provided values based on the index.
21
+
Replaces the format string placeholders with the provided values based on the index ([more information](https://github.com/telerik/kendo-intl/blob/master/docs/general-formatting/index.md).
18
22
19
23
## Parameters
20
24
@@ -24,7 +28,7 @@ The format string.
24
28
25
29
#### values `Array`
26
30
27
-
The values that should be replaced in the format string.
31
+
The values that will be replaced in the format string.
Copy file name to clipboardExpand all lines: docs/num-formatting/api.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,11 +10,15 @@ position: 2
10
10
11
11
Provides information about the exported methods from the Number Formatting module.
12
12
13
+
{% platform_content angular %}
14
+
For a runnable example, refer to the article on [date and number formatting and parsing]({% parsingandformatting_intl %}#toc-number-formatting).
15
+
{% endplatform_content %}
16
+
13
17
## Methods
14
18
15
19
### formatNumber
16
20
17
-
Converts a `Number` into a string based on the specified format and locale ([see example](https://github.com/telerik/kendo-intl/blob/master/docs/num-formatting/index.md).
21
+
Converts a `Number` into a string based on the specified format and locale ([more information](https://github.com/telerik/kendo-intl/blob/master/docs/num-formatting/index.md).
Copy file name to clipboardExpand all lines: docs/num-parsing/api.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,11 +10,15 @@ position: 2
10
10
11
11
Provides information about the exported methods from the Number Parsing module.
12
12
13
+
{% platform_content angular %}
14
+
For a runnable example, refer to the article on [date and number formatting and parsing]({% parsingandformatting_intl %}#toc-number-parsing).
15
+
{% endplatform_content %}
16
+
13
17
## Methods
14
18
15
19
### parseNumber
16
20
17
-
Converts a string into a `Number` based on the specified locale ([see example](https://github.com/telerik/kendo-intl/blob/master/docs/num-parsing/index.md).
21
+
Converts a string into a `Number` based on the specified locale ([more information](https://github.com/telerik/kendo-intl/blob/master/docs/num-parsing/index.md).
0 commit comments