Use ymd in one spot