When retrieving the AMI Creation Date from boto3 it returns a
string data type. Visually, this is okay but it is challenging to do operations and comparisons to the AMI Creation Date in this format.
To solve the issue we need to convert the AMI Creation Date from type
datetime before we could do some operations.
The AMI Creation Date string looks like
2019-09-18T07:34:34.000Z. To convert this we need to use the
strptime function from the