Convert numpy.datetime64 to string object in python

Solution was:

import pandas as pd 
ts = pd.to_datetime(str(date)) 
d = ts.strftime('%Y.%m.%d')

Leave a Comment