All Python Function is not working in Script task

I have perfectly executed python code in my computer. However, same code does not execute in Script task. For instance, I used parse() function to format datetime. parse(“2017-08-27T00:00:00.000”).date() works in my computer, but not in script task.
Although I imported (from datetime import date, time,datetime) required libraries in the script task.

Error I received “global name ‘parse’ is not defined”

from datetime import date, time,datetime
from dateutil import relativedelta, parser

INCR_LOAD_START_TIME = "2017-08-27T00:00:00.000"

Could you please help on how do I import dateutil into Snaplogic ?

dateutil is not part of the python standard library, so it cannot be called from the Script.

Do something like

from datetime import datetime
INCR_LOAD_START_TIME = "2017-08-27T00:00:00"
start = datetime.strptime(INCR_LOAD_START_TIME, "%Y-%m-%dT%H:%M:%S")

Look at if you want to handle the milliseconds