Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

How to remove Hours From Date Control

$
0
0

Hello

I have this control

<div> </div> <div>        [DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}",ApplyFormatInEditMode = true)]</div> <div>        [Required(ErrorMessage = "Captura este campo")]</div> <div>        public DateTime? BirthDate { get; set; }</div> <div></div> <div><div class="row">
<div class="col-md-12">
<div class="form-group">
<label asp-for="BirthDate" class="control-label"></label>
<input asp-for="BirthDate" asp-format="{0:dd/MM/yyyy}" class="form-control" />
<span asp-validation-for="BirthDate" class="text-danger"></span>
</div>
</div>
</div>
</div> <div></div> <div>I want to ask only for Date and not the hours and the minutes, how can i do this ?</div>


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>