How to compare a "Date/Time" field with "Date" type field in a report?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
Hi all,
I'm creating an IRM report using a Database View and need to compare:
Policy Exception "valid_to" — (Date/Time)
vs
Risk Acceptance Task "acceptance_end_date" — (Date)
The Database View works correctly. However, in the report condition builder, when I select:
Valid To → is different → Day as Acceptance End Date, is not available for comparison (I believe that's because the type fields are different).
What's the best way in 2026 to compare these two fields by calendar date only and return records where the dates are different?
Thanks!
- Labels:
-
Reports
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
Hello @cesar-arman
You're right in identifying the root cause. I saw an old community post where one achieved it by creating a custom date field by not showing it in the form and using it only for reporting/dashboard: https://www.servicenow.com/community/platform-analytics-forum/create-a-report-that-compares-date-tim...
Hope that helps!
