customDateTimeConstant

Creates a nullable DateTime CustomExpr from the given SQL text.

Security: text is copied into the generated SQL verbatim, with no escaping or parameter binding, so never build it from user input or other request data: anything that reaches it is executed as SQL (SQL injection). Pass only fixed SQL such as "NOW()", and use Exposed's parameterized expressions for values.

Return

a CustomExpr typed as nullable DateTime

Parameters

text

the raw SQL expression text (e.g., "NOW()"); a fixed SQL fragment, never user input