11import { EventEmitter } from '@angular/core' ;
2- import { cloneArray , cloneValue , columnFieldPath , getCurrencyCode , IBaseEventArgs , resolveNestedPath , yieldingLoop } from '../../core/utils' ;
2+ import { cloneArray , cloneValue , columnFieldPath , formatDate , getCurrencyCode , IBaseEventArgs , resolveNestedPath , yieldingLoop } from '../../core/utils' ;
33import { GridColumnDataType , DataUtil } from '../../data-operations/data-util' ;
44import { ExportUtilities } from './export-utilities' ;
55import { IgxExporterOptionsBase } from './exporter-options-base' ;
@@ -9,7 +9,7 @@ import { IGroupingState } from '../../data-operations/groupby-state.interface';
99import { getHierarchy , isHierarchyMatch } from '../../data-operations/operations' ;
1010import { IGroupByExpandState } from '../../data-operations/groupby-expand-state.interface' ;
1111import { IFilteringState } from '../../data-operations/filtering-state.interface' ;
12- import { DatePipe , FormatWidth , getLocaleDateFormat , getLocaleDateTimeFormat } from '@angular/common' ;
12+ import { FormatWidth , getLocaleDateFormat , getLocaleDateTimeFormat } from '@angular/common' ;
1313import { IGroupByRecord } from '../../data-operations/groupby-record.interface' ;
1414import { ColumnType , GridType , IPathSegment } from '../../grids/common/grid.interface' ;
1515import { FilterUtil } from '../../data-operations/filtering-strategy' ;
@@ -1057,8 +1057,7 @@ export abstract class IgxBaseExporter {
10571057 if ( isDate ) {
10581058 const timeZoneOffset = recordVal . getTimezoneOffset ( ) * 60000 ;
10591059 const isoString = ( new Date ( recordVal - timeZoneOffset ) ) . toISOString ( ) ;
1060- const pipe = new DatePipe ( grid . locale ) ;
1061- recordVal = pipe . transform ( isoString ) ;
1060+ recordVal = formatDate ( isoString , 'mediumDate' , grid . locale ) ;
10621061 }
10631062
10641063 const groupExpressionName = record . column && record . column . header ?
0 commit comments