This topic needs a title

Hi,

how can I read the calendar week (this week: 47) from a time variable - and vice versa how can I read a time variable from calendar week (e.g. monday 0h)?

thx, Rudolf

Hi,

That would be: Time.now.strftime(“%W”) and Date::commercial(year, week, day)