added strftime to format date