This question already has an answer here:
- Convert one date format into another in PHP 15 answers
In the database, date format is Y-m-d, im trying to display my result with this format d-m-Y.
This is my code:
<input name="personal_ic_from" type="text" class="tcal" id="personal_ic_from" value="<?php echo $personal_ic_from ?>" readonly="readonly"/>
Follow the procedural style in php
You can also try
strtotime()