Tried this:
$thismonth = new DateTime(dateReformat( 'Y-M' ));
$end = $thismonth->modify('last day of this month 23:59');
got this: 2018-02-28 23:59
as expected.
Tried this:
$thismonth->modify('last day of this month 23:59:59');
got this: 2018-02-28 23:59
expected: 2018-02-28 23:59:59
I'm trying to make a query, where I dont miss anything from the last minute of the month.
As @salathe mentioned in comment
In order to get seconds, You must provide it in format
Or as you requested in your comment
Use where clause in sql queries like this