@staticmethod<EOL><INDENT>def get_datetime_string(datetime_obj):<DEDENT>
if isinstance(datetime_obj, datetime):<EOL><INDENT>dft = DTFormat()<EOL>return datetime_obj.strftime(dft.datetime_format)<EOL><DEDENT>return None<EOL>
Get datetime string from datetime object

:param datetime datetime_obj: datetime object
:return: datetime string
:rtype: str