Changing format using datetime and returning list of tuples instead of dict