Build a date from its parts