Created
September 11, 2015 06:41
-
-
Save Thijzer/36ef647ad2d871d44fba to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// create a date | |
$this->frm->addDate('date', $this->record['date']); | |
// convert date with mysql | |
$date = \DateTime::createFromFormat('d/m/Y', $fields['date']->getValue()); | |
$item['date'] = $date->format('Y-m-d').' 00:00:00'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment