单项选择题

以下哪个JavaScript方法用于获取当前日期和时间?()

A.Date.now()
B.Date.getTime()
C.Date.getDate()
D.Date.getMilliseconds()