I used date(\'w\', timestamp) and date(\'w\', timestamp) to know the day, date(\'n\', timestamp) for months, etc.
date(\'w\', timestamp)
date(\'n\', timestamp)
Now I\'m using d
Try below code if you want to use php loop to display
'.$j.''; } ?> =$min; $i-- ) { echo ''.$i.''; } ?>