I need to capture date and time both for my model property. In my model class I have the following
[Required] [DataType(DataType.DateTime)] public DateTime?
I have to validate dd/mm/yyyy hh:ii and with help of @lukyer answer i have added DD/MM/YYYY HH:mm and it is working fine Hope this help !
dd/mm/yyyy hh:ii
DD/MM/YYYY HH:mm