added sanitizer toDate