Search code examples
netsuitedayofweeksuitescript

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?


Solution

  • Like this:

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