def created_today ( self ) : if self . datetime . date ( ) == datetime . today ( ) . date ( ) : return True return False
how to check the current date in python
Return True if created today .
def created_today(self):
        """Return True if created today."""
        if self.datetime.date() == datetime.today().date():
            return True
        return False