You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 25, 2018. It is now read-only.
I'd like an AND query on the date so I can get entries from a specific a time window
$startDate = new stdClass();
$startDate->__type = "Date";
$startDate->iso = "2013-08-01T00:00:00Z";
$endDate = new stdClass();
$endDate->__type = "Date";
$endDate->iso = "2013-10-01T00:00:00Z";
$query = new parseQuery($libraryTable);
$query->orderByDescending("createdAt");
$query->whereGreaterThanOrEqualTo('createdAt', $startDate);
// if I add this line, I get ALL records because this does an OR on the date.
// because date is >= start OR date is < end
// $query->whereLessThan('createdAt', $endDate);
Thanks!
PS. I highly appreciate this library.
The text was updated successfully, but these errors were encountered:
I'd like an AND query on the date so I can get entries from a specific a time window
// if I add this line, I get ALL records because this does an OR on the date.
// because date is >= start OR date is < end
// $query->whereLessThan('createdAt', $endDate);
Thanks!
PS. I highly appreciate this library.
The text was updated successfully, but these errors were encountered: