Adding New Formats to Old Data

added by DotNetKicks
4/5/2017 9:30:24 PM

1 Kicks, 204 Views

Code Focused The custom formatters in the .NET Framework provide a more seamless way to mix traditional and custom formatting situations. The core .NET data types include a nice variety of pre-defined and custom formatting codes that you can use when merging string templates and data elements together: message = String.Format( "As of {0:M/d/yyyy}, your balance is {1:C}.", billDate, amountDue); But what if that nice variety of formatting codes doesn't meet your needs?


0 comments