Versions Compared

Key

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

...

Info
titleMore formats

Check out the string formatting cheat sheet http://www.cheat-sheets.org/saved-copy/msnet-formatting-strings.pdf

TODO: How to use the unit designation of a datapoint in a label.

Examples

Numeric Formats

Applying some custom numeric format strings to specific data types and values. In this example we will change the text format of a temperature:

format string

value exampleresult

{0:p} or {0:P}

1100.00%

{0:00.0} °C

22.322.3 °C



DateTime Formats

DateTime formats typically depend on system localization settings.

format string

value exampleresult

{0:d}

2020-12-1012/10/2020 (short date)
{0:dddd}2018-09-19Wednesday

{0:yyyy}

2018-09-192018