Don't display hours and minutes if not necessary