title: TypeError: 'datetime.datetime' object is not callable, how to display time using a function
body: <p>I want to use the function datetime to display the time, but I am not able to. I kept getting 'TypeError: 'datetime.datetime' object is not callable'.Can someone please advise me how to solve this error.</p>
  
  <pre><code>from _datetime import datetime
  class purchasDateTime:
      def __init__(self, datetime):
          self._datetime = datetime
  
      @property
      def datetime(self):
          return self._datetime
  
      def __str__(self):
          return 'Date&amp;Time: {:%#d %b %Y %H:%M}'.format(self._datetime)
  
  
  def main():
      t1 = purchasDateTime(datetime(2019,4,8,12,45))
      print(t1)
      print('Pickup time:',t1.datetime())
  
  main()            
  </code></pre>
  
  <p>The result I want to get is "Pickup time: 12:45 PM"</p>