Base solution for your next web application
Open Closed

Custom Date #4881


User avatar
0
rodrigosturm created

Hi,

When I use a not null date property in Rad Tool, that create a "01/01/0001" , and its too hard to users select the current date for example.

If I select nullable , thats work just fine.

I'm using a Portuguese (Brasil) language, how can i correct that and bring current date for standard?

Thanks.


1 Answer(s)
  • User Avatar
    0
    yekalkan created

    You can set it in CreateOrEditModal method of controller.

    if (id.HasValue){
    				...
    			}
    			else{
    				getPersonForEditOutput = new GetPersonForEditOutput{
    					Person = new CreateOrEditPersonDto() { BirthDate = DateTime.Today } // <------
    				};
    			}