time:get_start_end_date_of_a_week($week, $year)

time:get_start_end_date_of_a_week(10, 2020)
#=> [
#=>     "week_start" => "2020-03-02",
#=>     "week_end" => "2020-03-08"
#=> ]

# number of weeks can go to the next year
time:get_start_end_date_of_a_week(70, 2020)
#=> [
#=>     "week_start" => "2021-04-26",
#=>     "week_end" => "2021-05-02"
#=> ]

Copyright ©2013-2022 SunSed®. All rights reserved.