A function to check the date variable whether is the right date. This is an internal function.

check_and_tidy_date_first_last(date, date_crossing, name)

Arguments

date

The last date to compare with.

date_crossing

The border crossing date.

name

A name of the checking variable.

Value

The date value that has been verified and reformatted correctly.