Displaying DateTime picker instead of Date picker in ASP .NET MVC 5.1/HTML 5 specific

Your requirements are pretty picky… Specifying the attribute Datatype for a field, will generate an input having as type the attribute specified. That’s why when you add [DataType(DataType.Date)], the input generated will be a date picker, but if you add [DataType(DataType.DateTime)], the input will be of type datetime, thus why you don’t get any picker displayed. Why? Because a few years ago, the browsers supporting … Read more