Dateof_dmy (day, month, year) builds a date, or Error if the tuple doesn't correspond to a real calendar date (e.g. day 30 in February, month 13).
val of_dmy_exn : (int * int * int) -> tLike of_dmy, but raises Invalid_argument instead of returning Error. Intended for literal dates written directly in source (e.g. content declarations) where an invalid date is a bug you want to catch immediately, not a value to handle at runtime.