# Today

| **Name**    | ***Today***                                                                                            |
| ----------- | ------------------------------------------------------------------------------------------------------ |
| Syntax      | Today ()                                                                                               |
| Purpose     | To get current system date without the time component.                                                 |
| Description | Returns current system date. Time returned is midnight. For current date and time, use *Now* function. |
| Return Type | Date Time                                                                                              |
| Parameter   | -                                                                                                      |

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

**Example**

In this example, we will drag-and-drop the *Today* 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%2Fgq4SIvVKldHhVhDNKeJE%2F1.png?alt=media)

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

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