---
title: CurrentDateTime
slug: neurons-for-itsm/admin-user-help/enu/latest/currentdatetime
createdAt: 2026-07-14T19:16:47.383Z
---

Returns the local date and time of today, as a DateTime value, of the current session. Use this function to populate a field with today's date and time.

:::hint{type="info"}
- This function returns the local date and local time for today as a *DateTime* value.
- The [CurrentDateStr](docId\:xoUpKLGeylZwfcAk7xaVq) function returns midnight UTC time on the server and midnight local time on the client as a *text* value.
- The [CurrentDate](docId\:JByWJ1rpdLcMqd_ickSBI) function returns midnight UTC time on the server and midnight local time on the client as a *DateTime* value.
:::

## Syntax

CurrentDateTime()

## 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                                                                          | Yes    |
| Services                                                                                    | Yes    |
| LDAP                                                                                        | Yes    |
| Mobile                                                                                      | Yes    |
| Quick Actions (except UI Quick Actions)                                                     | Yes    |
| UI Quick Actions                                                                            | Yes    |
| Reports                                                                                     | Yes    |
| Search/Dashboard without field references                                                   | Yes    |
| Search/Dashboard with field references                                                      | Yes    |

## Parameters

None.

## Return Value

DateTime value.

:::hint{type="info"}
If the application has to display the return value, it implicitly converts it to text, thereby allowing the display format to change depending on your culture code. See [Available Languages and Cultures](docId\:lvpBgqv5Z08McUzY43kY3) for a list of the culture codes used by Neurons for ITSM.
:::

## Example

`$(CurrentDateTime())`

:::Paragraph{indent="1"}
If the current date is January 15, 2014 at 4:30 PM and your time zone is Pacific time (which is UTC-7 during daylight savings time but UTC-8 during standard time), this function returns January 16, 2014 at 12:30 AM on the server and local time of January 15, 2014 at 12:30 AM on the client.
:::

`$(ToLocal(CurrentDateTime()))`

:::Paragraph{indent="1"}
The above example returns the current local date and time. (The **CurrentDateTime()** function returns the current date and time in UTC, and then the **ToLocal()** function converts it to the user's current local date and time.)
:::
