Returns the string representation of the datetime

def str(self,local=False,ifempty=None):
        """ Returns the string representation of the datetime
        """
        ts = self.get(local)
        if not ts: return ifempty
        return ts.strftime('%Y-%m-%d %H:%M:%S')