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

Subscribe

* indicates required
Subscribe to plus2net

    plus2net.com



    Post your comments , suggestion , error , requirements etc here





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