Demonstrates type: 'date' comparisons on a JavaScript data source DataTable.
This is the same dataset as the HTML example, but supplied via data/columns.
var threshold = { year: 2025, month: 1, day: 5, hours: 0, minutes: 0, seconds: 0 };
columnHighlighter: {
rules: [
{
conditionsContainer: [
{
logic: 'AND',
conditions: [
{
columnName: 'EU Dot',
operator: 'lt',
type: 'date',
valueDate: threshold,
dateTimeFormat: 'dd.MM.yyyy HH:mm:ss'
}
]
}
],
targets: [
{ column: 'EU Dot', css: { 'background-color': '#fff2cc', color: '#000' } }
]
}
]
}