Match a value against a date and enter the matched value