def _convert_date_time_string(dt_string):
 dt_string = dt_string.split('.')[0]
 dt_obj = datetime.strptime(dt_string, '%Y%m%d%H%M%S')
 return dt_obj.strftime('%Y-%m-%d %H:%M:%S')

def _convert_date_time_string ( dt_string ) : dt_string = dt_string . split ( '.' ) [ 0 ] dt_obj = datetime . strptime ( dt_string , '%Y%m%d%H%M%S' ) return dt_obj . strftime ( '%Y-%m-%d %H:%M:%S' )
convert string to date time object .