@staticmethod<EOL><INDENT>def get_datetime_object(datetime_str):<DEDENT>
try:<EOL><INDENT>dft = DTFormat()<EOL>return datetime.strptime(datetime_str, dft.datetime_format)<EOL><DEDENT>except:<EOL><INDENT>return None<EOL><DEDENT>
Get datetime object from datetime string

example:
    DateTimeUtils.get_datetime_object('2018-01-01 00:00:00')

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