Add a Date Column
Add a column withtype set to date in your risksheet.json:
YYYY-MM-DD strings for display and editing. Date columns parse values in local time to avoid timezone offset problems that can shift dates by one day.
Date Column Types
Risksheet supports three temporal column types, each handling a different precision level:| Type | Stores | Internal Format | Display Example | Polarion Field Type |
|---|---|---|---|---|
date | Date only | YYYY-MM-DD | 2025-03-15 | DateOnly, Date, Calendar, String |
datetime | Date and time | ISO datetime | 2025-03-15T14:30:00 | Date, Calendar, String |
time | Time only | HH:mm:ss | 14:30:00 | TimeOnly, String |
Customize the Display Format
Use theformat property on the column definition to control how dates appear in the grid:
| Pattern | Output | Description |
|---|---|---|
yyyy-MM-dd | 2025-03-15 | ISO date (default for date type) |
dd/MM/yyyy | 15/03/2025 | European day-month-year format |
MM/dd/yyyy | 03/15/2025 | US month-day-year format |
dd MMM yyyy | 15 Mar 2025 | Short month name format |
d MMMM yyyy | 15 March 2025 | Full month name format |
yyyy-MM-dd HH:mm | 2025-03-15 14:30 | Date with time (for datetime) |
HH:mm:ss | 14:30:00 | Time only (for time) |
global.culture setting in risksheet.json:
global.culture affects month names, day names, number separators, and the default date format. For example, setting "culture": "de" displays month names in German (“Marz” instead of “March”) and uses the appropriate locale conventions.
Configure Date Fields on Upstream Columns
When displaying a date from an upstream linked work item, set bothtype and readOnly explicitly:
readOnly to false enables editing of the upstream linked item’s date field directly from the Risksheet grid, without needing to open the work item in the Polarion editor.
Use Date Fields in Formulas
Date values are accessible in formula expressions asYYYY-MM-DD strings. Because this format orders segments from most significant (year) to least significant (day), simple string comparison produces chronologically correct results:
{item} context object providing access to all work item properties.
Use Conditional Formatting with Dates
Combine date formulas with cell decorators to visually highlight overdue or approaching deadlines:cellRenderer property. This applies CSS classes (overdue, due-soon) that you can style with custom CSS to show red or yellow backgrounds.
System Date Fields
Certain system date fields are always read-only regardless of column configuration:| Field | Description | Auto Read-Only |
|---|---|---|
created | Work item creation timestamp | Yes |
updated | Last modification timestamp | Yes |
id | Work item identifier | Yes |
status | Workflow status | Yes |
type | Work item type | Yes |
project | Project identifier | Yes |
outlineNumber | Document outline number | Yes |
author | Work item creator | Yes |
resolution | Resolution value | Yes |
readOnly: false. Save attempts to protected fields are silently ignored by the server.
Complete Example
Here is a full configuration snippet showing date columns with formatting, upstream binding, and a formula-driven overdue indicator:Troubleshooting
Date displays in wrong format — Verify theformat property uses the correct pattern syntax (case-sensitive: MM for month, mm for minutes). Check that global.culture matches your expected locale.
Date field shows wrong date (off by one day) — This occurs due to timezone conversion when using datetime type for date-only fields. Set the column type to date (not datetime) for date-only values. The date type parses values in local time specifically to prevent this problem.
Upstream date column is not editable — Check that readOnly uses uppercase O (readOnly, not readonly). Verify the type property is explicitly set to "date". Confirm the user has write permissions on the upstream work item and the grid is not viewing a historical revision.
Save error when editing date column (v24.5.0) — Remove the format property from date-only columns as a workaround. Enter dates in YYYY-MM-DD format directly in the cell. Upgrade to a version newer than 24.5.0 for the permanent fix.
Duration fields not displaying correctly — Duration columns use Polarion’s DurationTime format. If you see raw numeric values instead of formatted durations, check that the column type is set to duration and the underlying Polarion field is a DurationTime type.
Verify
After configuring a date column, reload the risksheet page. You should now see the date field displayed in your chosen format. Click the cell to confirm that the date picker appears and editing works correctly. For upstream columns, verify that changes save without error by entering a date and pressingCtrl+S.
See Also
- Add a Basic Column — column type configuration basics
- Enable Editing of Upstream Columns — making upstream columns editable
- Configure Column Sorting — sorting by date columns
- Configure Calculated Columns — formulas using date values
- Apply Conditional Formatting — highlighting overdue dates
- Render Custom Data — custom cell rendering for date-derived displays
Sources
Sources
KB ArticlesSupport TicketsSource Code
CellPreviewFormatter.tsGetSetUtil.javaPolarionAppConfigManager.javaResetColumnsCommand.tsConfigureColumnsCommand.ts