PHP Script Date

Category: Programming Written by Naldi Hits: 363

* Automatic get date only, month and year from date column on before record added :

$values["only_date"]=date("d", strtotime($values["date"]));
$values["only_month"]=date("F", strtotime($values["date"]));
$values["only_year"]=date("Y", strtotime($values["date"]));