use type "date" instead of "Date"