Skip to content

Commit c508882

Browse files
chore(dateInput): clean up article markdown
1 parent a88c40e commit c508882

File tree

1 file changed

+0
-107
lines changed

1 file changed

+0
-107
lines changed

components/dateinput/supported-formats.md

Lines changed: 0 additions & 107 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,10 @@ This article explains the format strings and specifiers supported by the Telerik
1414

1515
The `Format` property can take a number of possible format strings, and this is a list of the supported options and their effects.
1616

17-
<!-- ## Custom Formats -->
18-
1917
The .NET framework supports a list of format specifiers for dates that you can use to build your own format strings: [https://docs.microsoft.com/en-us/dotnet/standard/base-types/custom-date-and-time-format-strings](https://docs.microsoft.com/en-us/dotnet/standard/base-types/custom-date-and-time-format-strings). The Telerik Date Input steps on them and carries over as many as possible to the client-side to validate and facilitate user input.
2018

2119
>caption Using supported .NET format specifiers to define date format in the Telerik Date Input
2220
23-
2421
````CSHTML
2522
@using Telerik.Blazor.Components.DateInput
2623
@@ -63,116 +60,12 @@ The .NET framework supports a list of format specifiers for dates that you can u
6360
* `z`, `zz`, `zzz` - UTC offsets
6461
* `K` - kind
6562

66-
<!-- `t` and `tt` -makes h and hh useless even though they would maybe work -->
67-
<!-- `g`, `gg` - maybe should never be supported, since it may not be editable -->
68-
<!-- `K` - not tested until localization arrives, maybe should never be supported since it is not really an editable portion -->
69-
<!-- `f` through `ffffff` and `F` through `FFFFFF` have not been tested as they are too granular for the current feature set of the components -->
70-
71-
72-
<!--
73-
74-
>caption Most of the available custom format strings in .NET are used in the examples below
75-
76-
unsupported ATM:
77-
78-
m - single digit minutes
79-
t and tt - AM/PM indicators -makes h and hh useless even though they would maybe work
80-
g, gg - epoch indicators - maybe never, since it may not be editable
81-
ddd, dddd - day names
82-
z, zz, zzz - UTC offsets
83-
K - kind - not tested until localization arrives, maybe never will be supported since it is not really an editable portion
84-
85-
86-
87-
````CSHTML
88-
@using Telerik.Blazor.Components.DateInput
89-
90-
<TelerikDateInput @bind-Value="TheDate" Format="d/M/y h:m:s tt" />
91-
@TheDate.ToString("d/M/y h:m:s")
92-
<br />
93-
<TelerikDateInput @bind-Value="TheDate" Format="dd/MM/yy hh:mm:ss" />
94-
@TheDate.ToString("dd/MM/yy hh:mm:ss")
95-
<br />
96-
<TelerikDateInput @bind-Value="TheDate" Format="dd/MMM/yyyy H:m:ss g" />
97-
@TheDate.ToString("dd/MMM/yyyy H:M:ss g")
98-
<br />
99-
<TelerikDateInput @bind-Value="TheDate" Format="dd/MMMM/yyyy HH:mm:ss" />
100-
@TheDate.ToString("dd/MMMM/yyyy HH:MM:ss")
101-
<br />
102-
<TelerikDateInput @bind-Value="TheDate" Format="dd/MMM/yyyy H:m:ss z" />
103-
@TheDate.ToString("dd/MMM/yyyy H:M:ss z")
104-
<br />
105-
<TelerikDateInput @bind-Value="TheDate" Format="'enter dd/mm/yyyy date:' dd/MM/yyyy" />
106-
@TheDate.ToString("'enter dd/mm/yyy date:' dd/MM/yyyy")
107-
<br />
108-
109-
@TheDate
110-
111-
@code {
112-
DateTime TheDate { get; set; } = new DateTime(2019, 11, 27, 22, 03, 44);
113-
}
114-
````
115-
116-
>caption The result from the snippet above
117-
118-
-->
119-
120-
121-
<!-- ## Standard Formats -->
12263

12364
The .NET framework also has a list of standard formats for dates: [https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-date-and-time-format-strings](https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-date-and-time-format-strings). They are **not** supported with the Telerik Date Input for Blazor at this point.
12465

12566
>caution While the results of unsupported format specifiers values will render correctly, editing is not supported.
12667
127-
<!--
128-
129-
````CSHTML
130-
@using Telerik.Blazor.Components.DateInput
131-
132-
<TelerikDateInput @bind-Value="TheDate" Format="d" />@TheDate.ToString("d")
133-
<br />
134-
<TelerikDateInput @bind-Value="TheDate" Format="D" />@TheDate.ToString("D")
135-
<br />
136-
<TelerikDateInput @bind-Value="TheDate" Format="f" />@TheDate.ToString("f")
137-
<br />
138-
<TelerikDateInput @bind-Value="TheDate" Format="F" />@TheDate.ToString("F")
139-
<br />
140-
<TelerikDateInput @bind-Value="TheDate" Format="g" />@TheDate.ToString("g")
141-
<br />
142-
<TelerikDateInput @bind-Value="TheDate" Format="G" />@TheDate.ToString("G")
143-
<br />
144-
<TelerikDateInput @bind-Value="TheDate" Format="m" />@TheDate.ToString("m")
145-
<br />
146-
<TelerikDateInput @bind-Value="TheDate" Format="M" />@TheDate.ToString("M")
147-
<br />
148-
@*the 'o' and 'O' are related to time zones and kinds whose implementation is still unclear in Blazor, so they are omitted from this list*@
149-
<TelerikDateInput @bind-Value="TheDate" Format="r" />@TheDate.ToString("r")
150-
<br />
151-
<TelerikDateInput @bind-Value="TheDate" Format="R" />@TheDate.ToString("R")
152-
<br />
153-
<TelerikDateInput @bind-Value="TheDate" Format="s" />@TheDate.ToString("s")
154-
<br />
155-
<TelerikDateInput @bind-Value="TheDate" Format="t" />@TheDate.ToString("t")
156-
<br />
157-
<TelerikDateInput @bind-Value="TheDate" Format="T" />@TheDate.ToString("T")
158-
<br />
159-
<TelerikDateInput @bind-Value="TheDate" Format="u" />@TheDate.ToString("u")
160-
<br />
161-
<TelerikDateInput @bind-Value="TheDate" Format="U" />@TheDate.ToString("U")
162-
<br />
163-
<TelerikDateInput @bind-Value="TheDate" Format="y" />@TheDate.ToString("y")
164-
<br />
165-
<TelerikDateInput @bind-Value="TheDate" Format="Y" />@TheDate.ToString("Y")
166-
<br />
167-
168-
@TheDate
169-
170-
@code {
171-
DateTime TheDate { get; set; } = new DateTime(2019, 4, 27, 22, 03, 44);
172-
}
173-
````
17468

175-
-->
17669

17770
## See Also
17871

0 commit comments

Comments
 (0)