DateTime

Converts the input parameter into a local DateTime value.

Syntax

DateTime(value)

Enabled For

For a description of the business object categories, see Notes on "Enabled For".

Business Object Category Yes/No
Business Rules: Before-Save Rules Yes
Business Rules: Calculation Rules (After Save, with or without Also Recalculate on Load) Yes
Business Rules: Calculation Rules (Before Save or Always, without Also Recalculate On Load) Yes
Business Rules: Calculation Rules (Before Save or Always, with Recalculate On Load) Yes
Business Rules: Editing Rules Yes
Business Rules: Initialization Rules Yes
Business Rules: Read Only Rules Yes
Business Rules: Required Rules Yes
Business Rules: Validation Rules Yes
Client Expressions Yes
Object Permissions No
Services Yes
LDAP Yes
Mobile Yes
Quick Actions (except Export to Microsoft Excel Quick Action and UI Quick Actions) Yes
UI Quick Actions Yes
Reports Yes
Search/Dashboard without field references Yes
Search/Dashboard with field references No

Parameter

Parameter Description
value The input to evaluate. Can be a text value or a DateTime value.

Return Value

DateTime value.  See DateTime Embedded Literals and Conversion to DateTime Values. Returns the date and time in the date and time format that is based on your culture code. See Available Languages and Cultures for a list of the culture codes used by Neurons for ITSM.

Returns a date and time if the value parameter is a text value that contains a valid date and time literal.

Returns the same value parameter if the input is a DateTime value.

Returns null if the value parameter is null.

Example

$(DateTime("1/31/14"))

For the example above, returns 1/31/14. The return value depends on the locale.