Skip to content

Commit f4dffec

Browse files
authored
docs(datepicker): Update DateTimeOffset KB
1 parent 293a57b commit f4dffec

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

knowledge-base/date-input-picker-datetimeoffset.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,11 @@ Can I use a `DateTimeOffset` field with the Telerik date input and picker?
2727
Do the Telerik DateInput, DatePicker, DateTimePicker, TimePicker support the `DateTimeOffset` type?
2828

2929
## Answer
30-
The Telerik date and time inputs and pickers can work with a `DateTimeOffset` type and with the `DateTime` types. They can also be nullable.
30+
The Telerik DateInput, DateTimePicker and TimePicker can work with `DateTimeOffset` and `DateTime` types. The types can also be nullable. When the `Value` is of type `DateTimeOffset` these Telerik components will use its `.DateTime` field, which matches to the local time, just like with a "simple" `DateTime` object.
3131

32-
When the `Value` is of type `DateTimeOffset` the Telerik components will use its `.DateTime` field, which matches to the local time, just like with a "simple" `DateTime` object.
32+
The DatePicker requires a [different approach. See the Notes below](#notes).
3333

34-
For the DatePicker component, see the [Notes](#notes) below
35-
36-
>caption Sample of how the Telerik Date-Time inputs work with a DateTimeOffset
34+
>caption Sample of how the Telerik DateTime inputs work with a DateTimeOffset
3735
3836
````CSHTML
3937
@if(TheValue != null)
@@ -45,9 +43,9 @@ For the DatePicker component, see the [Notes](#notes) below
4543
}
4644
4745
<TelerikDateInput @bind-Value="@TheValue" Format="F" Width="400px" />
48-
49-
<br /><br />
50-
46+
<br />
47+
<TelerikTimePicker @bind-Value="@TheValue" Format="F" Width="400px" />
48+
<br />
5149
<TelerikDateTimePicker @bind-Value="@TheValue" Format="F" Width="400px" />
5250
5351
@code{

0 commit comments

Comments
 (0)