Save $100 with promo code CHEERS2025

As we are looking forward to an incredible 2025, enjoy our end-of-year promotion! Valid now through January 6th.

See Pricing

Still using Radzen Studio?
Achieve more with Radzen Blazor Studio

Radzen Blazor Studio is our new flagship product and vision of how rapid Blazor application development should be done.

Go to Radzen Blazor Studio

Data formatting (Blazor)

To format data in Radzen Blazor applications use the ToString method and specify a format expression.

String formatting

The standard ToUpper and ToLower methods allow you to transform the string casing.

  • Uppercase: ${stringProperty.ToUpper()}
  • Lowercase: ${stringProperty.ToLower()}

Number formatting

You can use standard and custom .NET number format strings.

  • Currency formatting: ${numberProperty.ToString("C0")}
  • Percent formatting: ${numberProperty.ToString("P")}
  • Custom formatting: ${numberProperty.ToString("00.00")}

Date formatting

Both standard and custom date formats are supported.

  • Standard Date formatting: ${dateProperty.ToString("d")}
  • Custom Date formatting: ${dateProperty.ToString("dd/MM/yyyy")}