date object should be date.