title: check date_join of user with specific datetime
body: <p>im new in python and django. i want check user.date_join with specific datetime but i dont know what is correct syntax.</p>
  
  <p>for more information : i have a SignIn  function in view.py and i want check <code>if user.date_join &lt; yyyy/mm/dd</code> i do something .</p>
  
  <p>view.py:</p>
  
  <pre><code>from datetime import datetime
  from django.contrib.auth.models import User
  
  if request.method == "POST":
      if request.user.is_authenticated:
          if user.date_joined &lt; (yyyy/mm/dd):  # &lt;==== here i have problem
                         #do smt
          else:
             #do smt
      else:
        #blah blah
  else:
     #blah blah
  </code></pre>