Skip to content
View as Markdown
View as Markdown

@salesforce/b2c-tooling-sdk / operations/cip / dateLiteral

Function: dateLiteral()

dateLiteral(value): string

Defined in: packages/b2c-tooling-sdk/src/operations/cip/sql.ts:94

Validates a YYYY-MM-DD date string and returns it as a quoted SQL date literal.

Parameters

value

string

Date string expected in YYYY-MM-DD form

Returns

string

A quoted SQL date literal

Throws

If the value is not a valid YYYY-MM-DD date

Released under the Apache-2.0 License.