Skip to content

Ad ddocumentation for DATEADD function in OQL#4

Open
dahfjkg wants to merge 1 commit intodat/datetruncfrom
dat/dateadd
Open

Ad ddocumentation for DATEADD function in OQL#4
dahfjkg wants to merge 1 commit intodat/datetruncfrom
dat/dateadd

Conversation

@dahfjkg
Copy link
Owner

@dahfjkg dahfjkg commented Mar 3, 2026

Requires team review. To be published with 11.9 release.


The `DATEADD` function adds a specified period of time to an expression of type `DATETIME`. The return type is `DATETIME`.

This function was introduced in Mendix version 11.9.0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should add a disclaimer for only runtime support like we did for STRING_AGG:

This function is only supported in Java actions.

|:--------------------|-------------------------|---------------------:|
| 2024-05-02 00:00:00 | 2024-11-02 00:00:00 | 2024-11-01 23:00:00 |

{{% alert color="info" %}}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps its better to place this near the datapart syntax section?


##### datepart

`datepart` specifies the interval in which `length_expression` is measured. For possible values, see [Examples](#oql-dateadd-example), below.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we are missing YEAR, SECOND and WEEK in the example. Could we also a reference DATEPART for the full list?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants