isoweekday()

isoweekday() : day of the week as integer, Sunday =0 , Monday =1 ....

Today's isweekday()
from datetime import date
dt=date.today()
print(dt.isoweekday())
Output
2
Using date and time object
from datetime import datetime
dt=datetime(2019,12,31)
print(dt.isoweekday())
Output
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