#112851
Markov
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/