niso
niso

Reputation: 107

How to find day of week in Suitescript

Hi Im new to suitescript. I want to find day of week from the Date. Is there any API's for it?

Upvotes: 0

Views: 707

Answers (1)

Adolfo Garza
Adolfo Garza

Reputation: 3029

Like this:

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

Upvotes: 2

Related Questions