title: Python using tkcalendar with if-statements
body: <p>Im trying to make if-statements with tkcalendar but dont know why it is not working.</p>
  <pre><code>from tkinter import *
  from tkcalendar import *
  import datetime
  
  root = Tk()
  root.title('Hi')
  root.geometry('500x400')
  
  cal = Calendar(root, date_pattern=&quot;d/m/y&quot;, year = 2020, month = 11, day = 1)
  cal.pack(pady=20)
  
  def grab_date():
      my_label.config(text = cal.get_date())
      d = cal.get_date()
      print(d)
      if datetime.datetime.strptime('01/11/2020', &quot;%d/%m/%Y&quot;).strftime(&quot;%d/%m/%Y&quot;) 
      &lt;=d&lt;=datetime.datetime.strptime('01/1/2021', &quot;%d/%m/%Y&quot;).strftime(&quot;%d/%m/%Y&quot;):
          print('ok')
  
  my_button = Button(root, text = 'Get date', command = grab_date)
  my_button.pack()
  
  my_label = Label(root, text = ' ')
  my_label.pack(pady = 20)
  
  root.mainloop()
  </code></pre>
  <p>It does not print 'ok' when I press the button between the dates. Does anyone know how I can fix this problem and how the if-statements are done when using tkcalendar? I want to then to add more conditions of when other dates are pressed print something else.</p>