Using timePattern to change the default time format

Options

by sekoooy

HTML

<link rel="stylesheet" href="https://s3.amazonaws.com/flexmonster/2.3/demo.css">
<script src="https://cdn.flexmonster.com/flexmonster.js"></script>

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

JavaScript

var pivot = new Flexmonster({
  container: "pivot-container",
  componentFolder: "https://cdn.flexmonster.com/",
  width: "100%",
  height: 430,
  toolbar: true,
  report: {
    options: {
      datePattern: "GMT+0:yyyy-MM-dd HH:mm:ss",
      "grid": {
        "type": "flat",
        "showTotals": "off",
        "showGrandTotals": "off"
      },
    },
    "dataSource": {
      "type": "json",
      "data": [{
          "OrderDate": {
            "type": "date string"
          },
          "Region": {
            "type": "string"
          },
          "Representative": {
            "type": "string"
          },
          "Item": {
            "type": "string"
          },
          "Units": {
            "type": "number"
          },
          "UnitCost": {
            "type": "number"
          },
        }, {
          "OrderDate": "2019-12-01T21:10:00.000Z",
          "Region": "East",
          "Representative": "Jones",
          "Item": "Pencil",
          "Units": 95,
          "UnitCost": 1.99
        },
        {
          "OrderDate": "2019-12-02T01:05:00.000Z",
          "Region": "Central",
          "Representative": "Kivell",
          "Item": "Binder",
          "Units": 50,
          "UnitCost": 19.99
        },
        {
          "OrderDate": "2019-12-03T00:00:00.000Z",
          "Region": "Central",
          "Representative": "Jardine",
          "Item": "Pencil",
          "Units": 36,
          "UnitCost": 4.99
        },
        {
          "OrderDate": "2019-12-04T00:00:00.000Z",
          "Region": "Central",
          "Representative": "Gill",
          "Item": "Pen",
          "Units": 27,
          "UnitCost": 19.99
        },
        {
          "OrderDate": "2019-12-05T00:00:00.000Z",
          "Region": "West",
          "Representative": "Sorvino",
          "Item": "Pencil",
          "Units": 56,
          "UnitCost": 2.99
        },
        {
          "OrderDate": "2019-12-06T00:00:00.000Z",
          "Region": "East",
     ...