What can we help you with?

e.g. Getting Started, Build Dashboards

Mongodb epoch time values in number form -- how to query?

1 comment

  • Official comment
    Avatar
    Jay

    for Epoch with milliseconds, use the date tokens with the millis. 

    Example: 

    $c9_today-1d|millis

    For Epoch in seconds, use epoch identifier

    $c9_today-1d|epoch

    Example: 

       db['someColl'].find({ 'createdate': { $gte: "$c9_today-1d|millis"} });

     

    Comment actions Permalink

Please sign in to leave a comment.