How to pass a variable to a function?

So to pass an array (pointer?) name, you have to put a the "star" character in front of it.
I think that what its doing anyway...

Should it be added to this?

/*
   Demo Code for passing Array (pointer?) to function
*/
byte inByte[] = {240, 240, 240 ,240, 240, 199, 23, 1, 1, 8, 49, 48, 49, 48, 51, 51, 48, 10, 0, 49, 50, 51, 52, 53};
int counter = 0;
int bufferLength = 23;

void setup() { 
  
  Serial.begin(1200);
  Serial.println("Serial Connected");
}

void loop() {     
     //Print some Labels
      Serial.println("INDEX \t \t DEC \t \t ASCII");
      byte Buffer[bufferLength];
      char StringBuffer[bufferLength];
      for (int x= 0; x < bufferLength; x++)
      {
        Buffer[x] = inByte[x];
        Serial.print(x);
        Serial.print("\t \t");     //print a tab
        Serial.print(Buffer[x]);
        Serial.print("\t \t");     //print a tab          
        StringBuffer[x] = Buffer[x];
        Serial.println(StringBuffer[x]);
        } //EndFor 
        
     getDateTime(StringBuffer);
               
 delay(10000);  
} //End Loop  

void getDateTime(char *StringBuffer)
{
        //Extract Date and Time from stringbuffer (which is of type char)
      char timeBuffer[12];
      for (int x = 0; x < 10 ; x++)
      {
        timeBuffer[x] = StringBuffer[x + 10];
      }
      Serial.println("");
      Serial.print("timeBuffer printed output is  ");    
      Serial.println(timeBuffer);               
}