Sometimes I find a solution you know I'll need again. I post some of these here.
Often the ToString() of a value type in C# .NET3.5 will accept parameter(s) specifying how the result should be formatted.