export class AppComponent {
public data: Object[];
public initialSort: Object;
public pageSettings: Object;
public columns: any=[];
public key: boolean;
constructor( ) {
}
queryCellInfo(args) { //queryCellInfo event
if(args.column.field == "InvDate") {
args.data.InvDate = DataUtil.parse.parseJson(new Date(args.data.InvDate)); //you can use this way to convert the date
}
}
public ngOnInit(): void {
this.columns = [
{ headerName: "Date", type:'date', format: "d MMM y", field: "InvDate", visibility: true},
. . . . . . . . .
];
}
}
|