Dateutil package not working

Hello,

I’m trying to use the relativedelta function of dateutil to see the date 13 months before the date selected. I’ve tried installing python-dateutil and dateutil (this one fails, if I look online you should use the python-dateutil in newer version of Python). The problem is that even though the build is successful it keeps giving me the ModuleNotFoundError: No module named 'dateutil' error.

Does anybody know what I’m doing wrong?

I’ve attached a clone link below.

Clone link:
share a copy of your app

Hi @fvanbochove

You don’t need to install it, it is already included in the python standard libraries.

You can simply use:
from dateutil.relativedelta import relativedelta

NOTE: This is only available on the server code.

1 Like

Thanks, the NOTE was the issue. I tried to run it in the client code.