[Solved] How to check month number? November 27, 2022 by Kirat Cast your month to int first. dd = "01" if int(dd) < month: pass solved How to check month number?