Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python compare dates

    jan_1_2020 = datetime.datetime(2020, 1, 1)
    dec_12_2020 = datetime.datetime(2020, 12, 12)

    if (jan_1_2020 < dec_12_2020):
        print("first datetime is less than the second")
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #compare #dates
ADD COMMENT
Topic
Name
8+3 =