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

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -