Smart UI Components & Libraries – Grid, Scheduler, Gantt, Kanban for Angular, React, Next.js, Vue, Blazor, JavaScript › Forums › Editor & Inputs › How do I handle Input in Blazor? › Reply To: How do I handle Input in Blazor?
August 13, 2025 at 2:22 pm
#112851
Keymaster
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/