# Canvas - @timestamp

**URL:** <https://discuss.elastic.co/t/canvas-timestamp/159501>\
**Category:** Kibana\
**Tags:** canvas\
**Created:** [December 5, 2018, 9:43am UTC](https://discuss.elastic.co/t/canvas-timestamp/159501 "2018-12-05T09:43:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![cmcdowell03](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cmcdowell03/32/36369_2.png) [@cmcdowell03](https://discuss.elastic.co/u/cmcdowell03)\
**Post date:** [December 5, 2018, 9:43am UTC](https://discuss.elastic.co/t/canvas-timestamp/159501/1 "2018-12-05T09:43:48Z")

</div>

Hello,  
I have set my Index pattern - @timestamp to MM/DD/YYYY, HH:mm:ss a , which otherwise works throughout Kibana but in Canvas the @timestamp defaults to YYYY MM dd, HH:mm:ss.SSS I'm assuming..  
Resulting in the following @timestamp ==\> 2018-12-02T00:41:04-06:00 in Canvas. This issue here is the tailing -06:00 for the timezone which places all of my data at 06:00 in my coordinate plot. I have even gone as far as setting my Date format in Kibana Advanced settings with no luck. Any help is appreciated  
Thank you

---

<div class="post-metadata">

**Author:** ![Aaron\_Caldwell](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron_caldwell/32/45755_2.png) [@Aaron\_Caldwell](https://discuss.elastic.co/u/Aaron_Caldwell)\
**Post date:** [December 5, 2018, 5:10pm UTC](https://discuss.elastic.co/t/canvas-timestamp/159501/2 "2018-12-05T17:10:13Z")

</div>

Hello Cody,

This can be adjusted using the `formatDate` function which uses the [moment lib](https://momentjs.com/docs/#/displaying/). Canvas is a bit of a conceptual shift from the rest of Kibana, it focuses on types of data and doesn't leverage Kibana's field formatters.

Regards,  
Aaron

---

<div class="post-metadata">

**Author:** ![cmcdowell03](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cmcdowell03/32/36369_2.png) [@cmcdowell03](https://discuss.elastic.co/u/cmcdowell03)\
**Post date:** [December 9, 2018, 6:15am UTC](https://discuss.elastic.co/t/canvas-timestamp/159501/3 "2018-12-09T06:15:42Z")

</div>

@Aaron_Caldwell would you happen to know if logstash mutate can handle the format change. At the moment I'm using the default Filebeat index output which writes a new index daily, or maybe i'm just missing the automated way to change the date format.

---

<div class="post-metadata">

**Author:** ![hashitha](https://avatars.discourse-cdn.com/v4/letter/h/ce73a5/32.png) [@hashitha](https://discuss.elastic.co/u/hashitha)\
**Post date:** [December 9, 2018, 9:31am UTC](https://discuss.elastic.co/t/canvas-timestamp/159501/4 "2018-12-09T09:31:10Z")

</div>

I have run into the same issue, Do you have an example of how to use formatDate?

I tried the following with no luck

```
timefilterControl compact=true column=AppointmentDate
| formatdate "DD-MM-YYYY"| render
```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 6, 2019, 9:31am UTC](https://discuss.elastic.co/t/canvas-timestamp/159501/5 "2019-01-06T09:31:13Z")

</div>

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