Within the variable date I have this:
Hereisthecodeinhtml:
<inputtype="text" class="form-control" readonly disabled value="@Model.Data">
Final result:
What is the simplest way to get a date? (date without time)
Matheus,
Use the code below to get the date without the time.
@Model.Data.ToString("dd/MM/yyyy")
Hugs,