How to add a calculation field that will contain the week number for a date entered in a date field.
In my app I have a date field that the user can input a date into. Would like to have a calculation field in my app, where the week number for the above mentionned date will be calculated and displayed. As you may know there are many different "systems" for week number, and what I am specificly interested in, is calculating a european/danish valid week number for the date. In Denmark monday is the first day of the week, and week number 1 is the first week with a thursday in it (week 1 has at least 4 days). In Excel I would write: WEEKNUM(date,21) to indicate the ISO 8601 System 2, commonly known as the European week numbering system. So how do I calculate a correct european week number from at date in Podio? Kind regards

  • Building on this thread is there a way to return the name of the day?  I.e. monday, wednesday, friday, etc. Thanks,  
  • Hi Steven, moment(@date field).format(D/WW/YY) But 3/23/2018 is in week 12, not in 18 :) Result 3/12/18 Rainer
  • Similar to this request, is there a calculation I could use to show the week the date resides in? For example, if I have a field that has 3/23/2018, I would want the calculation to show 3/18/18.
  • Hi Patriek,if the type of the field is "number" you can define the number of decimals (0,2,4) in the field settings: Click the little triangle on the left hand side (besides the field icon) and select it. If the type of the field is "text"  add .toFixed(0) (like: moment(@date field).isoWeek().toFixed(0) ) Rainer
  • Hi Rainer, how can I show weeks as a whole number, now it is shows decimals like 12,00 instead of 12. THANKS!
This question is closed.