Articles in this section

How to Format Date Labels in the Chart Category Axis in Bold Reports

Published:
Updated:

Learn how to format date labels on a chart’s category axis in Bold Reports to improve readability and match reporting requirements. This guide explains how report designers can customize date formats using the Properties Panel or Expressions.

Step-by-Step Instructions

Method 1: Using the Properties Panel

This method applies standard date formats directly to the chart axis labels.

  1. Open the report in the Bold Reports Web Designer.

  2. Select the Chart component (such as Bar, Column, or Line chart) to activate its settings.

  3. In the Properties Panel, scroll down to locate the Category Axis section.

    Locate Category Axis section in the Properties Panel

  4. Expand the Label settings under the Category Axis.

  5. In the Format field, choose one of the following options:

    • Option A (Manual Entry): Enter a custom date format string directly, such as: MM/dd/yyyy, dd-MMM-yyyy, or yyyy-MM.
      Entering a manual date format string
    • Option B (Format Dialog): Click the ellipsis (…) icon, set the Type to Date, select your preferred format, and click OK.
      Use the formatting dialog for dates

Note: To ensure the Properties panel format is applied, the label field must contain only the raw field value without any pre-existing expressions.

Method 2: Using Expressions

Use this method if you need complex logic or specific string manipulation for your date labels.

  1. Navigate to the Data Panel and locate the date column assigned to your chart.

  2. Click the Settings (gear) icon next to the column name and select Groups.

    Open grouping settings from the Data Panel

  3. In the Grouping dialog, enable the Label option.

  4. Click Expression to open the Expression Editor.

    Open the Expression Editor for labels

  5. Enter the formatting expression (e.g., =Format(CDate(Fields!YourDateField.Value), "dd/MM/yyyy")).

  6. Ensure the Group By field is set to the required date field and click OK.

    Apply expression and group by settings

  7. Click Preview in the top toolbar to verify the formatted labels.

    Preview the formatted chart labels

Code Samples

Minimal Expression Example

Use the following expression for basic date formatting in the Expression Editor.
Tested on Bold Reports 7.1

=Format(CDate(Fields!OrderDate.Value), "MM/dd/yyyy")

Full Context Example

If the data source returns date values as strings, use CDate to ensure the Format function interprets them correctly.

// Example for a field named 'ShipDate'
// Returns: 27-Oct-2025
=Format(CDate(Fields!ShipDate.Value), "dd-MMM-yyyy")

Related Articles

Was this article useful?
Like
Dislike
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied