PHP Knowledge Base
Set and format current date using DateTime
class
$cur__year = date('Y'); $cur__mon = date('m'); $cur__day = date('d'); $cur__date = new DateTime(); $cur__date->setDate($cur__year, $cur__mon, $cur__day); $cur__date__fancy = $cur__date->format('F j');