I used a tool called "formatdesiger" to test the output of string formatting. Recently, I found that there are several types of missing, such as byte, guid, today, I changed formatdesiger a little and added these types.
The tool is simple and can be used to test the tostring formatting output of the datetime, int16, int32, int64, decimal, single, double, byte, and guid types. As suggested by friends in the garden, this tool also integrates some common formatting strings. You can select from the drop-down box when using it.
Download the C # string formatting test tool
Msdn Format String instructions:
Numeric format string: http://msdn.microsoft.com/zh-cn/library/427bttx3.aspx
Date and Time Format String: http://msdn.microsoft.com/zh-cn/library/97x6twsz.aspx
Enumerated Format String: http://msdn.microsoft.com/zh-cn/library/c3s1ez6e.aspx