added toDate()