I am trying to figure out the style string for the Format(Expression as Object, Style as String) function in a Reporting Services expression.
I can’t find where these style format strings are documented!
Specifically I am trying to format a Price field to be always 2 decimal places.
ie 1.5 formats to $1.50
Format with Currency format string
It will give you 2 decimal places with “$” prefixed.
You can find other format strings on MSDN: Adding Style and Formatting to a ReportViewer Report
Note: The MSDN article has been archived to the “VS2005_General” document, which is no longer directly accessible online. Here is the excerpt of the formatting strings referenced: