Skip to content
Advertisement

Convert Date to pandas from ISO 8601 format

I have a date it look like this

JavaScript

how can i convert it to someting like this

JavaScript

Advertisement

Answer

If you want to do this using Pandas, you can use pandas to convert iso date to datetime object then strftime to convert timestamp into string format

JavaScript

to apply it to a series of dates of DataFrame column you can replace iso_date with the series of dates and use this code

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement