<?php date_default_timezone_set('Asia/Karachi'); $date=getdate(date("U")); $day = $date['mday']; $month =$date['mon']; $year = $date['year']; $currentDate = $year.'-'.$month.'-'.$day; ?>