Если у меня есть дата, как мне рассчитать номер недели для этой даты в течение этого года?
Например, в 2008 году с 1 января по 6 января на неделе 1 и 7 января до 13-го числа на неделе 2, поэтому, если моя дата была 10 января 2008 года, мой номер недели будет 2.
Алгоритм был бы хорош, чтобы заставить меня начать, и пример кода также поможет - я разрабатываю на С++ в Windows.