I have a date object imported from my database, but it is showing up as a Unix timestamp (-62101391858000). I know I can format the date using pipes like {{myDate | date:medium}}, however, I am using ng2-charts so I need to find a different solution. My chart is currently displayed as follows:
<base-chart class="chart"
[datasets]="lineData"
[labels]="lineLabels"
[options]="lineChartOptions"
[colors]="lineChartColours"
[legend]="lineChartLegend"
[chartType]="lineChartType">
</base-chart>
I have searched for <base-chart>
but it seems to be hidden within ng2-charts.
Does anyone have any suggestions on how to resolve this issue?