Question : to get week number by current date
Answered by : fierce-ferret-gavaejemrebg
moment(moment().toDate(), "MM-DD-YYYY").isoWeek()
Source : https://stackoverflow.com/questions/25953551/moment-js-get-the-week-number-based-on-a-specific-day-also-past-years/70665998#70665998 | Last Update : Tue, 18 Jan 22
Question : get current week number
Answered by : encouraging-eagle-257ub9oodfwl
<?php
$ddate = "2012-10-18";
$date = new DateTime($ddate);
$week = $date->format("W");
echo "Weeknummer: $week";
Source : https://stackoverflow.com/questions/9567673/get-week-number-in-the-year-from-a-date-php | Last Update : Thu, 28 Jan 21