switched up the method of outputting dates