Base de connaissances
Créé
Mise à jour
Mise à jour
Microsoft Excel: Convert ISO 8601 string to date type
Assuming that the first column contains the combined date time in the ISO 8601 format. For example:
2014-05-29T02:50:28
2014-05-29T02:50:28
To convert the date time string into a date column:
- Enter the following formula into the first cell of an empty column:
=DATEVALUE(MID(A1,1,10))+TIMEVALUE(MID(A1,12,8)) - Select the cell and drag the fill handle to the end of the column
- Right-click on the column header and select Format Cells...
- Select any of the available Date formats
Mots-clés
Articles connexes
What do you think about this topic? Send feedback!