alguidelines/content/NAVPatterns/using-calcdate/index.md
2021-10-22 00:23:03 +02:00

16 lines
434 B
Markdown

+++
title = "using-calcdate.md"
weight = 1370
+++
CALCDATE should only be used with DateFormula variables. Alternatively the string should be enclosed using the <\> symbols.
Bad code
IF ReservEntry."Expected Receipt Date" \>
CALCDATE('-' + FORMAT("Dampener (Time)") + FirstDate)
THEN
Good code
IF ReservEntry."Expected Receipt Date" \>
CALCDATE('<-' + FORMAT("Dampener (Time)") + FirstDate + '\>')
THEN