How can I get week number from date?

There is no formatter in App Connect for that. Include momentjs on your page and use the following custom formatter.

dmx.Formatters('string', {
  getWeek: function(val) {
    return moment(val).week();
  },

  getIsoWeek: function(val) {
    return moment(val).isoWeek();
  }
});
1 Like