Hi Patrick,
Greetings from Syncfusion support.
We have not processed the value based on timezone (DateTimeOffset) value in our source end, so we have used DateTime instead of DateTimeOffset. But, you can convert Datetimeoffset value to DateTime and assign the value to our Datetimepicker component.
Kindly refer to the code block.
@using Syncfusion.EJ2.Blazor.Calendars;
<EjsDateTimePicker Value="@DateTimeValue"></EjsDateTimePicker>
@code {
public DateTimeOffset Value { get; set; } = new DateTimeOffset(2008, 6, 19, 7, 0, 0, new TimeSpan(5, 30, 0));
public DateTime DateTimeValue
{
get
{
return Value.UtcDateTime;
}
set
{
DateTimeValue = Value.UtcDateTime;
}
}
} |
Regards,
Sureshkumar P