I have a timestamp string column in my dataset.
from datetime import date
tmstmp = date('2018-05-01T23:20:07.317Z')
What I am trying to do id: write a function to extract the month, the day of the week and the hour of the day (0-24) from my timestamp string.
Thcodebove cod throws the error TypeError: an integer is required (got type str)
when I try to cast the string as a date or a DateTime type.
How to cast the string into DateTime type and how to extract the days, month and hour data?
Also, it appears that the Z stands for zone, how to extract the zone name from the timestamp?