JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › Editor & Inputs › How do I handle Input in Blazor?
How do I bind data to the Smart.DateTimePicker? Are controlled and uncontrolled modes supported?
Hi,
You can use its setDate and getDate methods to set and get dates or bind its value property to a Blazor variable.
<DateTimePicker @bind-Value="@selectedDate" FormatString="dd/MM/yyyy HH:mm" /> <p>Selected: @selectedDate</p> @code { private DateTime selectedDate = DateTime.Now; }
Best regards, Markov
Smart UI Team https://www.htmlelements.com/