I am having problems printing a date stored in my db on a date input field.
Before I had it as type="text"
and the date would show whenever I loaded the page. However, I changed the type to type="date"
so that the users do not have to type the date every time they want to change it. However, the text field is not being preloaded with the date, now it only shows "mm/dd/yyyy"
I would like to be able to see the date that is saved in the db when I load the page, and then if I want to make changes, just use the date picker.
Here is the code. Any help will be highly appreciated.
<input ng-model="vm.adminSettings.projectDeadlineStartDate"
class="form-control" type="date"
style="margin-left: 1px; margin-right: 5px;"
title="Start Deadline" required />