Phalcon\Tag::dateField - change first day of week

Hi everybody,

How can I change de first day of week in Phalcon\Tag::dateField?

Thanks, in advance, for any attention.



83.4k

You can use the \DateTime object from PHP (http://php.net/manual/en/datetime.modify.php) and then use:

$date = new \DateTime();
// modify date ...
$this->tag->setDefault('myDate', (string) $date);
echo Phalcon\Tag::dateField('myDate');