swat.cas.utils.datetime.python2cas_date

swat.cas.utils.datetime.python2cas_date(pydt)

Convert a Python date to a CAS date

Parameters
pytsdatetime.date

Python date.

Returns
int

CAS date

Examples

>>> cas2python_date(datetime.date(1970, 1, 1))
3653