Automatically detect numeric strings for datetime type