I'm using the following to get a list of dates in a field called "EFF_DATE" from an attribute table for some pre-selected features.
selectDates = [row for row in arcpy.da.SearchCursor(selects, "EFF_DATE")]
I then use
max() to get the most current date from that list:
selectDates = max(selectDates)
This is my result for
datetime.datetime(2012, 12, 18, 0, 0)
If I run
In:print(selectDates), I get
2012-12-18 00:00:00 That looks better but what I want is just this '12/18/2012' How do I convert it?