Home

How to Enter Dates in your Queries

To search for dates you'll use a date range [start date .. end date] or a specific date.

Examples

Find web applications updated between 1-2 months ago

asset.updated: [now-2M .. now-1M]

Find web applications updated between January 1st and April 1st 2018

asset.updated: [2018-01-01 .. 2018-04-01]

Find web applications updated between 10 days ago and 1 second ago

asset.updated: [now-10d .. now-1s]

Find web applications updated between 2022-10-01 and 2022-10-03

asset.updated: [2022-10-01 .. 2022-10-03]

Find web applications updated on November 1st 2018

asset.updated: '2018-11-01'

Find web applications updated on November 1st 2018 at time 10:53:49

asset.updated: "2018-11-01 10:53:49"

Date variables

Date variables help you define a date or date range you're interested in. We support yyyy, yyyy-MM, yyyy-MM-dd and more.

Find vulnerabilities that were last detected between January 1st 2020 and December 31st 2020 (i.e. yyyy)

vulnerability.lastDetectedDate:"2020"

Find vulnerabilities that were last detected between November 1st and 30th 2018 (i.e. yyyy-MM)

vulnerability.lastDetectedDate:"2018-11"

Find vulnerabilities that were last detected anytime on November 1, 2018 (i.e. yyyy-MM-dd)

vulnerability.lastDetectedDate: "2018-11-01"

Find vulnerabilities that were last detected started on November 1st 2018 from 10 to 11 AM (i.e. yyyy-MM-dd HH)

vulnerability.lastDetectedDate: "2018-11-01 10"

Find vulnerabilities that were last detected on November 1st 2018 at 10:15 AM (i.e. yyyy-MM-dd HH:mm)

vulnerability.lastDetectedDate: "2018-11-01 10:15"

Find vulnerabilities that were last detected on November 1st 2018 at 10:15:44 AM (i.e. yyyy-MM-dd HH:mm: ss)

vulnerability.lastDetectedDate: "2018-11-01 10:15:44"

Use the "now" shortcut

Type now- then a number and a time unit: y (year), M (month), w (week), d (day), h (hour), m (minute), s (second)

now-1y for 1 year ago

vulnerability.lastTestedDate:[now-1y... now]

now-2M for 2 months ago

vulnerability.lastTestedDate:[now-2M... now]

now-5d for 5 days ago

vulnerability.lastTestedDate:[now-5d... now]

Comparison operators

We support comparison operators in your date searches.

vulnerability.firstDetectionDate> 2020-10-18

vulnerability.firstDetectionDate>= 2020-10-12

vulnerability.firstDetectionDate< 2020-10-12

vulnerability.firstDetectionDate<= 2020-10-12

Step by step search tutorial