Skip to main content

No of Week according to Month formula modify

  • December 2, 2020
  • 1 reply
  • 0 views

Forum|alt.badge.img+12

Hello,

I use this formula to define the week number according to the month and it resets again starting the new month.
LPSD is my Licence Period start date

VALUE(DATETIME_FORMAT(LPSD,‘w’))-
VALUE(DATETIME_FORMAT(DATETIME_PARSE(‘01’&DATETIME_FORMAT(LPSD,‘MM’)&YEAR(LPSD),‘DDMMYYYY’),‘w’))+1

it’s giving me a wrong week no: week -47. when it’s week 5

is there a slight modify can solve this?
thanks

1 reply

Julian_E_Post
Forum|alt.badge.img+13

This appears to be a bug in the Datetime_Format function. Just running this formula on dates December 27-31, 2020 results in a “1” when it should be “53”

DATETIME_FORMAT(Date,'w')


Reply