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

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -