Um, probably a really simple question, but I just noticed that I have no idea on how to convert DateTime.Now to the format YYMMDD, so for example today (5. November 2009) would be “091105”.
I know there are overloads to DateTime.Now.ToString() where you can pass in a format string, but I have not found the right format e.g. for short year format (09 instead of 2009).
You may also find the following two posts on MSDN useful as they contain a lot of info about DateTime formatting:
Standard Date and Time Format Strings
Custom Date and Time Format Strings