SyntaxFix
Write A Post
Hire A Developer
Questions
6 years later... I found this post and I liked more the numpy aproach:
import numpy as np dates_array = np.array(['2013-01-01', '2013-01-15', '2013-01-30']).astype('datetime64[ns]') truncated_dates = dates_array.astype('datetime64[D]')
cheers