Back to Posts

.NET format string for the ToString method

I just found a super reference for format string of the ToString method. Thanks BlackWasp for sharing it.

Various native .NET framework types include an overloaded version of the ToString method that accepts a format string. This reference sheet provides a list of standard formats and custom format specifiers for numeric types, DateTimes, GUIDs and enums.

.NET Formatting Reference Sheet

Read Next

Itay Talgam: Lead like the great conductors