DateType.
Usage example:
udf add_days()
n days to the date.
Equivalent to date + timedelta(days=n).
udf day()
date.day.
udf isocalendar()
'year', 'week', and 'weekday'.
Equivalent to date.isocalendar().
udf isoformat()
date.isoformat().
Parameters:
sep(String): Separator between date and time.timespec(String): The number of additional terms in the output. See thedate.isoformat()documentation for more details.
udf isoweekday()
date.isoweekday().
udf make_date()
datetime().
udf month()
date.month.
udf strftime()
date.strftime().
Parameters:
format(String): The format string to control the output. For a complete list of formatting directives, seestrftime()andstrptime()Behavior.
udf toordinal()
date.toordinal().
udf weekday()
date.weekday().
udf year()
MINYEAR and MAXYEAR as defined by the Python datetime library).
Equivalent to date.year.