Something like this should be OK:
dim strFileName as string
dim strMyVariable as string
strFileName = Format (myTextBox.Value, "dd-mm-yy")
strMyVariable = "c:\directory\" & strFileName & ".csv"
Note that there needs to be a trailing "\" after the directory and that "/" is an illegal...