<label class="w3-text-teal"><b>Date Of Birth</b></label>
<input class="w3-input w3-border w3-light-grey" type="date" value="<?php echo strftime('%Y-%m-%d',strtotime($row['date_of_birth'])); ?>" name="dob" required>
Above is my code and I want to fetch database values of the date of birth in my input type date attribute.
Thanks In Advance :)
Please use yyyy-mm-dd format as a value. you have wrong spelled strftime function it should be strtotime
<label class="w3-text-teal"><b>Date Of Birth</b></label> <input class="w3-input w3-border w3-light-grey" type="date" value="<?php echo strtotime('%Y-%m-%d',strtotime($row['date_of_birth'])); ?>" name="dob" required>