Datetime functions in macro

Wei Wang asked on May 19, 2022 19:19

Hi,

How do I write a macro to do the date differences like DateDiff in SQL? Say I want to compare the deadline field on a Kentico form to see if the deadline date input is less than 7 days and then I will have a dependent form field to be visible. How do I do it?

It's for Kentico 11 portal engine. Thanks, Wei Wang

Recent Answers


Brenden Kehren answered on May 20, 2022 15:05

Check out the macro method reference documentation for v11. You can test your macro in the System > Macro console app.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.