单项选择题

假定今天是2006年4月1日星期六,请问下列JavaScript代码在页面上的输出结果是()。
var time=new Date();
document.write(time.getDate());

A. 2006
B. 4
C. 1
D. 6