I have a project on ASP.Net core MVC 2.1. And there is the following model:
public class Duty
{
public int DutyId { get; set; }
public DateTime Date { get; set; }
public List<DutyOfPerson> DutyPerson { get; set; }
}
VS generated controllers and views. HTML is generated for the Date property:
<div class="form-group">
<label class="control-label" for="Birthday">День рождения</label>
<input class="form-control" type="date" data-val="true" id="Birthday"
name="Birthday" value="">
<span class="text-danger field-validation-valid" data-valmsg-for="Birthday"
data-valmsg-replace="true"></span>
</div>
When you call the action controller displays all the duty. But now I need to display data for one month. I need to create DatePikker on the page where I can only select the month and year. Did someone do something like that? Thanks in advance.