--- title: today() function description: > `today()` returns the now() timestamp truncated to the day unit. menu: flux_0_x_ref: name: today parent: universe identifier: universe/today weight: 101 flux/v0.x/tags: [date/time] introduced: 0.116.0 --- `today()` returns the now() timestamp truncated to the day unit. ##### Function type signature ```js () => time ``` {{% caption %}}For more information, see [Function type signatures](/flux/v0.x/function-type-signatures/).{{% /caption %}} ## Examples - [Return a timestamp representing today](#return-a-timestamp-representing-today) - [Query data from today](#query-data-from-today) ### Return a timestamp representing today ```js option now = () => 2022-01-01T13:45:28Z today()// Returns 2022-01-01T00:00:00.000000000Z ``` ### Query data from today ```js from(bucket: "example-bucket") |> range(start: today()) ```