﻿---
title: ES|QL NOW function
description: 
url: https://www.elastic.co/elastic/docs-builder/docs/2870/reference/query-languages/esql/functions-operators/date-time-functions/now
products:
  - Elasticsearch
---

# ES|QL NOW function
## Syntax

![Embedded](https://www.elastic.co/elastic/docs-builder/docs/2870/reference/query-languages/esql/images/functions/now.svg)


## Parameters


## Description

Returns current date and time.

## Supported types


| result |
|--------|
| date   |


## Examples

```esql
ROW current_date = NOW()
```


| y:keyword |
|-----------|
| 20        |

To retrieve logs from the last hour:
```esql
FROM sample_data
| WHERE @timestamp > NOW() - 1 hour
```