avoid date < 0