Formatting date properly.