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