# DateFunctionExpression (/docs/core/reference/api/interfaces/DateFunctionExpression)



[@kysoql/core](/docs/core/reference/api) / DateFunctionExpression

Typed Salesforce date-function expression that can be selected or grouped.

## Extended by [#extended-by]

* [`DateFunctionBuilder`](/docs/core/reference/api/interfaces/DateFunctionBuilder)

## Type Parameters [#type-parameters]

| Type Parameter                                                                                        |
| ----------------------------------------------------------------------------------------------------- |
| `Output`                                                                                              |
| `ComparisonValue`                                                                                     |
| `Operator` *extends* [`ComparisonOperator`](/docs/core/reference/api/type-aliases/ComparisonOperator) |
| `Identity` *extends* `string`                                                                         |

## Methods [#methods]

<a id="api-tooperationnode" />

### toOperationNode() [#tooperationnode]

```ts
toOperationNode(): DateFunctionNode;
```

Returns the immutable operation node represented by this expression.

#### Returns [#returns]

[`DateFunctionNode`](/docs/core/reference/api/type-aliases/DateFunctionNode)

## Properties [#properties]

| Property                                                                      | Modifier   | Type                    | Description                                                                                                        |
| ----------------------------------------------------------------------------- | ---------- | ----------------------- | ------------------------------------------------------------------------------------------------------------------ |
| <a id="api-property-expressiontype" /> `expressionType`                       | `readonly` | `Output` \| `undefined` | Type-only output marker used for fluent-query inference; implementations do not expose a meaningful runtime value. |
| <a id="api-property-comparisonvaluetype" /> `comparisonValueType?`            | `readonly` | `ComparisonValue`       | Type-only marker for values accepted when comparing this expression.                                               |
| <a id="api-property-comparisonoperatortype" /> `comparisonOperatorType?`      | `readonly` | `Operator`              | Type-only marker for comparison operators supported by this expression.                                            |
| <a id="api-property-datefunctionidentitytype" /> `[dateFunctionIdentityType]` | `readonly` | `Identity`              | Type-only marker used to preserve this expression capability through TypeScript inference.                         |
