alguidelines/content/NAVPatterns/3-cal-coding-guidelines/internationalization/using-calcdate/index.md
2021-10-30 22:09:32 +02:00

16 lines
431 B
Markdown

+++
title = "Using Calcdate"
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