> Documentation index: https://www.gooddata.ai/docs/gooddata-ui/llms.txt lists every page of these docs as Markdown.

# defWithDateFormat()

- Package: [@gooddata/sdk-model](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/index.md)
- Kind: function
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-model/src/execution/executionDefinition/factory.ts

Changes the dateFormat of a postProcessing, other properties of postProcessing (if any) remain unchanged.

**Signature:**

```typescript
export declare function defWithDateFormat(definition: IExecutionDefinition, dateFormat: string): IExecutionDefinition;
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| definition | [IExecutionDefinition](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.iexecutiondefinition/index.md) | execution definition to alter with postProcessing |
| dateFormat | string | Format to be applied to the dates in an AFM execution response. |

**Returns:**

[IExecutionDefinition](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.iexecutiondefinition/index.md)

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();
