if(dateLen > 0)
{
*dateMetadata = (char*)relloc(*dateMetadata, (dateLen + 1) * sizeof(char));
*dateMetadata = (char*)realloc(*dateMetadata, (dateLen + 1) * sizeof(char));
strcpy(*dateMetadata, date);