javascript - Fetch records using relative time interval condition -
Whether it is possible to get a record using relative time interval, suppose I want to see all records satisfying the following formula :
(NOW () - Model Deliverate) & gt; 24_HOURS
You can do something like this:
(Now () - 24_HOURS) & gt; Model.deliveryDate
that will translate to something like:
var aDayInMs = 1000 * 60 * 60 * 24, aDayAgo = New Date (New Date (.) GetTime () - ADAIM); Query.lessThan ('Delivery Date', Idea);
The query is actually edited to act as the specified.
Comments
Post a Comment