Hi,
I met with the issue
- I have a database with a table that has a column closed with the values like this 2019-01-21 23:47:56
- I create a datastore
$this->src('quinos') ->query("select closed from tbl_daily_procedures") ->pipe($this->dataStore('end_day_date'));
and get the max value
$this->dataStore('end_day_date')->max('closed');
Everything is nice i get the maximum value 2019-01-21 23:47:56
But when I do like this
$this->src('quinos')
->query("select closed from tbl_daily_procedures")
->pipe(new DateTimeFormat(array(
"closed"=>"F j, Y"
)))
->pipe($this->dataStore('end_day_date'));
I get September 9, 2018