
Announcements
Hello!
I am try to run the following script:
from datetime import datetime
from dateutil.relativedelta import relativedelta
# current dateTime
now = datetime.now()
previousmonth = datetime.now()-relativedelta(months=1)
short_mon = previousmonth.strftime("%%b")
print(short_mon)
When I run the code I get:
Traceback (most recent call last):
File "<string>", line 2, in <module>
ImportError: No module named dateutil.relativedelta
Is there a way to add this to powerautomate so that it can function?
Not sure. PAD runs an ancient version of Python, so that module is probably not included.
However, I do know that you can achieve a similar result using three actions within PAD: