add function for Date