Use DateTime for toDate()
Fix doc