isocalendar()

isocalendar() : to get ISO year, ISO week number, ISO weekday

Today's isoncalendar()
from datetime import date
dt=date.today()
print(dt.isocalendar())
Output
(2019, 38, 2)
Using date and time object
from datetime import date
dt=date(2019,12,31)
print(dt.isocalendar())
Output
(2020, 1, 2)
All Date Objects


plus2net.com



Post your comments , suggestion , error , requirements etc here




We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
©2000-2019 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer