I found out how to get the current date and time as variables (right?) in C# thanks to this thread with the code
DateTime now = DateTime.Now;
string date = now.GetDateTimeFormats('d')[0];
string time = now.GetDateTimeFormats('t')[0];
However I'm not sure what the first line does. After some thinking I suppose it calls the current date and time data from the computer and applies/tells it to the program.
By the way, I'm a noob at programming and new to C#.