I have a date string formatted like this: "2017-05-31T06:44:13Z"
.
I need to check whether this date is within a one year span from today's date.
Which is the best method to do it: convert it into a timestamp and check, or convert into a date format?