I am trying to parse a date with a specific format
This is my date string 2020-08-12 00:00:00 +05:30
Format string: %Y-%m-%d %H:%M:%S %Z
Code that does the formatting:
date_object = datetime.datetime.strptime(date_string, format_str)
Output:
ValueError: time data '2020-08-12 00:00:00 +05:30' does not match format '%Y-%m-%d %H:%M:%S %Z'
Things I've tried:
Changing Zone from Caps to small z with format string as %Y-%m-%d %H:%M:%S %z
Python Version: 3.6
%z.