defWithDateFormat()
Home > @gooddata/sdk-model > defWithDateFormat
defWithDateFormat() function
Changes the dateFormat of a postProcessing, other properties of postProcessing (if any) remain unchanged.
Signature:
export declare function defWithDateFormat(definition: IExecutionDefinition, dateFormat: string): IExecutionDefinition;
Parameters
Parameter | Type | Description |
---|---|---|
definition | IExecutionDefinition | execution definition to alter with postProcessing |
dateFormat | string | Format to be applied to the dates in an AFM execution response. |
Returns:
new execution with postProcessing updated with the specified dateFormat
Remarks
This function will call defWithPostProcessing to update definition with the new postProcessing.
This function MUST be used to implement IPreparedExecution.withDateFormat();