I want just date to be displayed not time in partial view
model.ReturnDate = DateTime.Now;
return PartialView("PartialView", model);
Home / DeveloperSection / Forums / Display only date and no time
I want just date to be displayed not time in partial view
model.ReturnDate = DateTime.Now;
return PartialView("PartialView", model);
Prakash nidhi Verma
08-Jun-2018Date only not time is display in partial view:
Please use a templates with field access,property access,single-dimension array index only.
or
partial view:
please use this method for partial view in razor as a render action.
i hope, it will be useful for you.
Happy Coding :)
Anonymous User
30-May-2018use this syntax in your partial razor view