New to MatBlazor below
<MatDatePicker @bind-Value="@Date1"></MatDatePicker>
Want to learn how to get date, format the date and get the time
Does this one has time component?
Thanks
New to MatBlazor below
<MatDatePicker @bind-Value="@Date1"></MatDatePicker>
Want to learn how to get date, format the date and get the time
Does this one has time component?
Thanks
Example :
<MatDatePicker @bind-Value="@Date1"></MatDatePicker>
@code{
var formattedValue = Date1.ToString("dd mm yyyy");
var dateValue = Date1.Date;
var timeValue = Date1.TimeOfDay;
}
Please ask 1 question at a time.
MatDatePicker is based upon mat-datepicker Best would to look into material design and the ui components for answers to your question
Even though it is for Angular, it gets close, for example look at Angular 6 material: how to get date and time from matDatepicker?