Here\'s an array of datetime values:
array = np.array([\'2016-05-01T00:00:59.3+10:00\', \'2016-05-01T00:02:59.4+10:00\', \'2016-05-01T00:03
You can use _guess_datetime_format from core.tools to get the format. ie
_guess_datetime_format
core.tools
from pandas.core.tools import datetimes as tools tools._guess_datetime_format(pd.to_datetime(array).format()[0][:10])
Output :
'%Y-%m-%d'
To know more about this method you can see here. Hope it helps.