My code:
<SfTimePicker TValue="TimeSpan" @bind-Value="@myTime" Format="@FormatType"></SfTimePicker>
@code {
public string FormatType = "hh:mm:ss";
TimeSpan myTime = new TimeSpan(08, 25, 00);
}
I get this error in the browser in the developers tools console
Error:
[2023-10-28T18:55:48.659Z] Error: System.InvalidOperationException: Input string was not in a correct format.
at Syncfusion.Blazor.Internal.Intl.GetDateFormat[T](T date, String format, String culture)
at Syncfusion.Blazor.Calendars.SfTimePicker`1.FormatDateValue(TValue timeValue, String formatString)
at Syncfusion.Blazor.Calendars.SfTimePicker`1.FormatValueAsString(TValue formatValue)
at Syncfusion.Blazor.Inputs.SfInputTextBase`1.PreRender()
at Syncfusion.Blazor.Inputs.SfInputTextBase`1.OnParametersSetAsync()
at Syncfusion.Blazor.Calendars.SfTimePicker`1.OnParametersSetAsync()
at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)
at Microsoft.AspNetCore.Components.ComponentBase.RunInitAndSetParametersAsync()
Some help? thank you so much!