方法 描述; Date() 返回当日的日期和时间。 getDate() 从 Date 对象返回一个月中的某一天 (1 ~ 31)。 getDay() 从 Date 对象返回一周中的某一天 (0 ~ 6)。 oListItem.get_item("MyTestDate") This displays on the page by default as: …

I am using the javascript object model to get a date field back and display it on a page e.g. JavaScript exercises, practice and solution: Write a JavaScript function to display the current day and time in a specific format 方法 描述; Date() 返回当日的日期和时间。 getDate() 从 Date 对象返回一个月中的某一天 (1 ~ 31)。 getDay() 从 Date 对象返回一周中的某一天 (0 ~ 6)。