c# - Not able to display date in view mvc -
i had model
[datatype(datatype.date)] [display(resourcetype = typeof(resources.resources), name = "txtdateofbirthday")] public datetime? dateofbirth { get; set; }
and need display in view date, doesn't work. view such:
@html.labelfor(model => model.dateofbirth, new {@class = "control-label"}) @html.textboxfor(model => model.dateofbirth, new {@class = "form-control", @type = "date"}) @html.validationmessagefor(model => model.dateofbirth)
Comments
Post a Comment