Accept Numeric values for dates.

Fixes #2370.