I am attempting to fix the current datetime. First when I try to add a new user there by default I get this view how should I change to get the current date on format (MM/dd/yyyy)
Date Format option in CRUD pages wizard will be available in our next update. If you do not want to recreate your CRUD pages you set the DataGrid column FormatString property to desired format and the DatePicker DateFormat property.
That will be great to have it in the next update. I tried FormatString property before I wrote in the community but I got the result as you see it in this screenshot.
Here is the code for the datagridcolumn.
RadzenDataGridColumn TItem="Datasets.Server.Models.Test.TableName" Property="dob" Title="dob" FormatString="MM/dd/yyyy">
/RadzenDataGridColumn>
Thanks a lot It solved the issue I really appreciate it!
Do you have any Idea regarding the year range how this properties work.
RadzenDatePicker DateFormat="@CurrentDate" style="display: block; width: 100%" @bind-Value="@tableName.dob" Name="dob" TabIndex="2" YearRange="@CurrentYear:@PrevYear" /
I have initialize these dates as INT
CurrentYear = DateTime.Today.Year;
PrevYears = DateTime.Today.AddYears(-100).Year;
I tried multiple case to add this range for example like @currentyear+ ":"@prevyear. But it says that component attributes do not support complex content (mixed c# and markup)
I'm trying to get the currentdate/year into these field because whenever I click to select the date it just resets