max() min()

max() : Maximum representable date
min() : Minimum representable date
from datetime import datetime
dt=datetime(2019,12,31)
print(dt.min)
print(dt.max)
Output
0001-01-01 00:00:00
9999-12-31 23:59:59.999999
All Date Objects
Your Rating




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