geetools.Date.DateAccessor.to_datetime#
- geetools.Date.DateAccessor.to_datetime()#
Convert a
ee.Date
to adatetime.datetime
.- Returns:
The
datetime.datetime
representation of theee.Date
.- Return type:
datetime.datetime
Examples
import ee, geetools ee.Initialize() d = ee.Date('2020-01-01').geetools.toDatetime() d.strftime('%Y-%m-%d')