SAP Knowledge Base Article - Public

3232497 - Dates comparison through tags

Symptom

Is it possible to consume any tag that gives us date difference?

Environment

SAP SALES CLOUD CPQ

Cause

Currently, there is not dedicated tag for date comparison.

Resolution

As a workaround, it is possible to use Eval tag along with DateDiff.

Example tag:

[GT](<*CTX( Quote.CustomField([custom field name]).Format(yyyyMMdd) )*>,<*CTX( Quote.CustomField([custom field name]).Format(yyyyMMdd) )*>)

The operators [GT] (greater than) and [LT] (less than) can be used to compare the dates. Please note the fields should be of type Date. Also, system fields can be used, like Created date. 

Keywords

CPQ, Eval, DateDiff, Compare. , KBA , CEC-SAL-CPQ , Sales Cloud CPQ , How To

Product

SAP CPQ 2025