# DateTimeOffsetNow ()

| **Name**    | ***DateTimeOffsetNow***                                   |
| ----------- | --------------------------------------------------------- |
| Syntax      | DateTimeOffsetNow ()                                      |
| Purpose     | To return the machine’s (computer) current date and time. |
| Description | Gets the current system date and time.                    |
| Return Type | Date TimeOffset                                           |
| Parameter   | -                                                         |

**Example**

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FbQS7AGeIY6zbkCQOplDd%2F0.png?alt=media)

In this example, we will drag-and-drop the *DateTimeOffsetNow* function transformation object to the *dataflow designer* window.

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FHJxSpPMjf5X8lSsLNehv%2F1.png?alt=media)

Current system time:

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2F6jj0XKsqypEEQJfTfOBp%2F2.png?alt=media)

Right-click on the function transformation object and select *Preview Output.* You can see that Astera Data Stack has returned the current system date time with offset value.

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FAMfoCs93i5XajeTiIZbw%2F3.png?alt=media)
