use `strftime` instead of slicing