HTML5 datetime-local input field requires the format to be:
- A date.
- The literal string "T".
- A time.
Example: 2018-12-31T23:59
So as Per above format your input should be as follows:
<input type="datetime-local" value="<?php echo date('Y-m-d\TH:i', $numeric_time); ?>">
Tip: You can also check your console in your devTools for seeing what is the required format for this date input, if your console is clear then your format is correct otherwise it will display warning as below then you can test the various formats, for you ablove solution is correct:
The specified value "2018-10-16T07:05AM" does not conform to the required format. The format is "yyyy-MM-ddThh:mm" followed by optional ":ss" or ":ss.SSS". jquery.min.js:3