code: def date_from_adverb(base_date, name):
      """
      Convert Day adverbs to dates
      Tomorrow => Date
      Today => Date
      """
      # Reset date to start of the day
      adverb_date = datetime(
          base_date.year, base_date.month, base_date.day
      )
      if name == "today" or name == "tonite" or name == "tonight":
          return adverb_date.today().replace(
              hour=0, minute=0, second=0, microsecond=0
          )
      elif name == "yesterday":
          return adverb_date - timedelta(days=1)
      elif name == "tomorrow" or name == "tom":
          return adverb_date + timedelta(days=1)
  
file_path: ChatterBot/chatterbot/parsing.py
imports: import re
  from datetime import timedelta, datetime
  import calendar
label_desc: Use image node_id 6 for calling a global function with example usage: date_from_adverb(base_date, name) and returns: adverb_date, unknown, unknown