<#3026 [Core feature] Add type transformer for dat...
# flytekit
a
#3026 [Core feature] Add type transformer for datetime.date Issue created by dennisobrien Motivation: Why do you think this is important? Flyte currently does not support the
datetime.date
object for passing to or from tasks.
Copy code
ValueError: Type <class 'datetime.date'> not supported currently in Flytekit. Please register a new transformer
In
flytekit/core/type_engine.py
there are transformers for
datetime.datetime
and
datetime.timedelta
, but not for
datetime.date
. Goal: What should the final outcome look like, ideally? Flyte tasks should be able to accept and return
datetime.date
objects. Describe alternatives you've considered The workaround is to use a
datetime.datetime
or to use a string of the form "YYYY-MM-DD". Propose: Link/Inline OR Additional context No response Are you sure this issue hasn't been raised already? ☑︎ Yes Have you read the Code of Conduct? ☑︎ Yes flyteorg/flyte