I have a date field named LAST, a short integer field named FRQ, and a date field named NEXT that I need to calculate. FRQ field is populated with frequency in months, with values that look like 6, 12, 24, etc.

I'm using ArcMap 10.8.2, and want to add the number of months from FRQ to the date in LAST, and get the result in NEXT.

When I r-click NEXT and open Field Calculator, choose the Date functions, DateAdd, and enter in the box under NEXT = the following:

DateAdd ( [LAST], [FRQ],"months" )

This gives me a syntax error.

What am I doing wrong?


1 Answer 1


You are trying to use the VB Script DateAdd function with the Python parser. Either use a Python expression or change the parser to VB Script:

enter image description here

  • It worked. I was using VB Script Parser, but had the wrong sintax. I was using DateAdd ( [LAST], [FRQ],"months" ) Your example showed me that I should use DateAdd ( "m", [RTN_frq], [RTN_lst] ). And that solved the problem. I wish there was a better documentation on the use of the function. Thanks!!!!
    – Roney
    Jun 26, 2023 at 18:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.