I am doing a project that is similar to your tutorial on 'Performing Data Annotation in ASP.Net MVC 5'. I am facing some
difficulties in removing the default time of 12:00:00 AM . Do you know how to remove the default time? As
I need to have actual time to been generated after I my current date. I wasn't sure of what code to be used
in data annotation in order to get my actual time. Please kindly assist me.
Best Regards,
Michelle
Abhay ShankerPosted Jun 28, 2014, 9:10 PM
I checked the tutorial and found that in datetime column only date is submitted,In this case the record is submitted as yyyy-MM-dd 12:00:00 AM format.
So save the data in correct format and bind without the format string.
you will get the expected result.