While running the following code I’m getting following error
ValueError: time data '2024-04-27T04:50:23.3480072Z' does not match format '%Y-%m-%dT%H:%M:%S.%fZ'
Here is my python code
from datetime import datetime
time_string = '2024-04-27T04:50:23.3480072Z'
format_string = '%Y-%m-%dT%H:%M:%S.%fZ'
parsed_time = datetime.strptime(time_string, format_string)
print(parsed_time)
I’m passing the correct date format string still getting error.