Using dateTimePattern to change the default date format

Options

HTML

<script src="https://cdn.flexmonster.com/flexmonster.js"></script>

<div id="pivot-container"></div>

JavaScript

let pivot = new Flexmonster({
  container: "pivot-container",
  componentFolder: "https://cdn.flexmonster.com/",
  toolbar: true,
  report: {
    dataSource: {
      data: getData(),
      mapping: {
      	"Date": {
        	"type": "datetime"
      	},
      	"Event": {
        	"type": "string"
     		},
      	"Price": {
      		"type": "number"
      	}
      }
    },
    options: {
      dateTimePattern: "yyyy.MM.dd HH:mm:ss.l"
    }
  }
});

function getData() {
  return [
    {
      "Date": "2025-07-29T15:30:45.123",
      "Event": "Concert",
      "Price": 56
    },
    {
      "Date": "2020-01-11T23:55:00.111",
      "Event": "Performance",
      "Price": 34
    },
    {
      "Date": "2021-03-08T10:45:00.343",
      "Event": "Cinema",
      "Price": 10
    }
  ]
}