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

Razor Datepicker

$
0
0

I have this property 

[DataType(DataType.Date)]
public DateTime Dob { get; set; }

and the HTML for it is

<label asp-for="PatReg.Dob" class="col-md-3 control-label"></label><div class="col-md-6"><div class="input-group"><span class="input-group-addon"><i class="fa fa-calendar" aria-hidden="true"></i></span><input asp-for="PatReg.Dob" class="form-control"></div>

I know that its bound to the model, but how can I get rid of the date picker without losing this binding?


Viewing all articles
Browse latest Browse all 9386

Trending Articles