Hi,
Few points to note:
1.If you are looking for getting current date with getDate() functionality, try using currentDate instead of getDate().
2. dateDiff expects the parameters in the way dateDiff(interval type, firstDate, secondDate) i.e. in the format ("d", firstDate, secondDate) to get days difference between firstDate and secondDate.
3. Similarly for dateAdd also the format is dateAdd(interval type, number of intervals, a date field ), for e.g. dateAdd("d", -14, someDate) to subtract 14 days from the someDate date value entered.
I hope by correcting above mentioned changes, you can try again.
Thanks,
Raghavendra