r6509: use date(y,m,d) for dates.