Format date without trailing zeros