From the background to get date
the output type of data to the front end easier, much as described, mainly back to the front end of the delivery time result in inconsistent data type. Specific solutions:
Between measures taken
<input type="text" name="bookPubDate" class="form-control">
After taking measures
<input type="date" name="bookPubDate" class="form-control">
Nothing operation just type
replaced the date