如何在Suitescript中找到星期几

时间:2017-01-24 08:00:15

标签: netsuite dayofweek suitescript

嗨,我是新的套房。我想从Date找到星期几。是否有任何API?

1 个答案:

答案 0 :(得分:2)

像这样:

var d = new Date();
var n = d.getDay(); //Sunday is 0, Monday is 1, and so on