helper to obtain a date from year/month/day values