You need a couple different pieces:
Directory.CreateDirectory[
^] to create the directory.
DateTime.ToString(string)[
^] to create a string for the time.
And
DateTime Custom Format Strings[
^] to generate a custom format.
So your code would look something like this:
public void CreateDirectory(string prefix)
{
string dirName = prefix + " on " + DateTime.Now.ToString("ddd MM.dd.yyyy 'At' HH:mm tt");
string dirName = string.Format("{0} on {1:ddd MM.dd.yyy 'At' HH:mm tt}", prefix, DateTime.Now);
Directory.CreateDirectory(dirName);
}
[Edit notes] The second version is preferred (delete the first line), anything you can do to avoid string concatenation is better, although the performance hit in this case is negligible. [/Edit]
Which you would call with your textbox prefix.
NOTE: I did not check to see if any of the characters are reserved, if they are you will get an exception when trying to create the directory saying it has invalid characters.