docstr: formatting the datetime in an instrument
  
  Parameters
  ----------
  inst_df: pd.DataFrame
      inst_df.columns = [self.SYMBOL_FIELD_NAME, self.START_DATE_FIELD, self.END_DATE_FIELD]
  
  Returns
  -------
  inst_df: pd.DataFrame
docstr_tok: ["formatting","the","datetime","in","an","instrument","Parameters","--","--","--","--","--","inst_df",":","pd.DataFrame","inst_df.columns","=","[","self.SYMBOL_FIELD_NAME",",","self.START_DATE_FIELD",",","self.END_DATE_FIELD","]","Returns","--","--","--","-","inst_df",":","pd.DataFrame"]
code: def format_datetime(self, inst_df: pd.DataFrame) -> pd.DataFrame:
      """formatting the datetime in an instrument
  
      Parameters
      ----------
      inst_df: pd.DataFrame
          inst_df.columns = [self.SYMBOL_FIELD_NAME, self.START_DATE_FIELD, self.END_DATE_FIELD]
  
      Returns
      -------
      inst_df: pd.DataFrame
  
      """
      logger.info("Formatting Datetime")
      if self.freq != "day":
          inst_df[self.END_DATE_FIELD] = inst_df[
              self.END_DATE_FIELD
          ].apply(
              lambda x: (
                  pd.Timestamp(x) + pd.Timedelta(hours=23, minutes=59)
              ).strftime("%Y-%m-%d %H:%M:%S")
          )
      else:
          inst_df[self.START_DATE_FIELD] = inst_df[
              self.START_DATE_FIELD
          ].apply(lambda x: (pd.Timestamp(x)).strftime("%Y-%m-%d"))
  
          inst_df[self.END_DATE_FIELD] = inst_df[
              self.END_DATE_FIELD
          ].apply(lambda x: (pd.Timestamp(x)).strftime("%Y-%m-%d"))
      return inst_df
  
imports: from functools import partial
  import sys
  from pathlib import Path
  import datetime
  import fire
  import pandas
  from tqdm import tqdm
  from loguru import logger
  from data_collector.index import IndexBase
  from data_collector.utils import get_instruments
label_desc: Use image node_id 5 for calling the IBOVIndex obj's underlying member method code with example usage: obj.format_datetime(inst_df) and returns: inst_df