pendulum

Python pendulum module returning wrong week number

Python pendulum module returning wrong week number Question: The way iam trying to get the week number import pendulum from datetime import date dt = pendulum.parse(str(date.today())) week = dt.week_of_month print(dt) print(week) Result 2023-01-19T00:00:00+00:00 -48 The week number is -48 here, please help me to get the correct week number of the month Asked By: kalesh …

Total answers: 2