---
title: DateTime
slug: neurons-for-itsm/admin-user-help/enu/latest/datetime
createdAt: 2026-07-14T19:16:40.719Z
---

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"](docId\:u26v9feCFs6iLwA0-PVJd).

| 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

:::Paragraph{indent="1"}
DateTime value.  See [DateTime Embedded Literals](docId\:p2uBsNmhfJa5hSFTdWDdU) and [Conversion to DateTime Values](docId\:fSeYKSLXQ6Rp-9McJ2Ym3). Returns the date and time in the date and time format that is based on your culture code. See [Available Languages and Cultures](docId\:lvpBgqv5Z08McUzY43kY3) for a list of the culture codes used by Neurons for ITSM.
:::

:::Paragraph{listStyleType="disc" indent="2"}
Returns a date and time if the **value** parameter is a text value that contains a valid date and time literal.
:::

:::Paragraph{listStyleType="disc" indent="2"}
Returns the same **value** parameter if the input is a DateTime value.
:::

:::Paragraph{listStyleType="disc" indent="2"}
Returns null if the **value** parameter is null.
:::

### Example

1. For **English (United Kingdom)** locale, accepted date format is *dd/mm/yy*.

:::Paragraph{indent="1"}
$(DateTime("31/01/24"))
:::

:::Paragraph{indent="1"}
For the example above, returns 31/01/24 as date.
:::

2. For **English (United states)** locale, accepted date format is *mm/dd/yy*.

:::Paragraph{indent="1"}
$(DateTime("01/31/24"))
:::

:::Paragraph{indent="1"}
For the example above, returns 01/31/24 as date.
:::

:::hint{type="info" indent="1"}
The return date value depends on the locale you're using. Check the date format based on your locale.
:::
