How can one check today's day of the week in Youtrack Workflow -


i schedule rule (with notifications) executed during work days. i.e. avoid receiving notifications on saturdays , sundays. how can check current day of week in youtrack workflow?

using format can day of week abbreviation or full name.

var dayofweekabr = now.format(#e); var dayofweek = now.format(#eeee); 

or using year-month-day literal (2014-01-05 sunday):

var day = (created - 2014-01-05).millis / 86400000 % 7;  if (day > 1 && day < 6) {    message("work day");  } 

Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -