Posted on: 3/9/2015 2:13:47 AM | Views : 567

I am using a Bootstrap DateTime picker in an MVC app and have a couple things I am having difficulty with.
First issue is I am trying to set the datetime picker to the datetime in the database when I am editing a record.  The datetime picker will load with the date but not the time. 
Second issue is that I want the datetime picker when clicked, to be the date time of the application date.  Currently, it opens with a datetime of December 1899.
The ApplicationDate in the datebase table is a datetime datatype.
Any advice will be greatly appreciated. thanks
Below is the markup in the view. 
 <th>    <div class='input-group date' id='ApplicationDate'>     <input type='datetime' name="ApplicationDate" class="form-control" value=@Model.ApplicationDa ...

Go to the complete details ...