Display current date in Canvas Workpad


I want to display the current day in text format on my Canvas Workpad, e.g.: 05th, December, or something like that. Do you have any ideas on how I can do it? FYI the date information is in the @timestamp field.


Hello @Matheus_Rodrigues, welcome to the community!

Given that you have this date stored in a timestamp field, one way to display the most recent timestamp is to use a text element (add element -> text), then open the expression editor and add something like this:

| essql
query="SELECT timestamp as date FROM \"kibana_sample_data_logs\"
ORDER BY timestamp DESC
| markdown "Date: {{#each rows}}{{date}}{{/each}}"
| render

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.