fix doc issue with as.Date