Conversion of dates and printing multiple strings