YouIf you only want to work with yyyy-mm-dd
strings, for example '2014-10-10'
, you could do something like:
'before' => '2014-10-10 + 1 day - 1 second',
or
'before' => '2014-10-10 + 86399 seconds',
or
'before' => 'tomorrow 2014-10-10 - 1 second',
'before' => '2014-10-10 tomorrow - 1 second',
or
just append
'23:59:59'
to youryyyy-mm-dd
string
to get
'before' => '2014-10-10 23:59:59'
if you only want to work with yyyy-mm-dd
strings.