This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Week number
#2
(30.03.2020, 15:26)Mathieu Wrote: Hello,

I would like the week number of the year on my script but the function os.date('w') doesn't work.
Is anyone has a solution please ?

Thank you very much
week = os.date("%V")
log(week)

if (week % 2 == 0) then
  log("even week")
else
  log("odd week")
end
Reply


Messages In This Thread
Week number - by Mathieu - 30.03.2020, 15:26
RE: Week number - by Joep - 30.03.2020, 15:28
RE: Week number - by Mathieu - 30.03.2020, 15:34

Forum Jump: