Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Examples


  • Numeric Format Strings:

 Applying some custom numeric format strings to specific data types and values. In this example we will change the Text Format of Temperatur: 

{0:p} or {0:P}  

...

represents percentage e.g. 1,500.00%
{0:00.0}°C  
will

...

Round the number to 1 number after comma  e.g. 22.2 °C

Image Modified



  • DateTime Format Strings:  

Represents a custom DateTime format string.

{0:d}represents Short Date Pattern e.g. 12/10/2020

{0:d} represents Short Date Pattern e.g. 12/10/2020

{0:dddd} represents full name of the day of the week e.g. Wednesday

{0:yyyy} represents Represents the year as a four-digit number. e.g. 2018

Info
titleFor more formats