# Opensearch Notebooks - Date format

**URL:** <https://forum.opensearch.org/t/opensearch-notebooks-date-format/6919>\
**Category:** Reporting Plugin\
**Created:** [September 3, 2021, 7:22am UTC](https://forum.opensearch.org/t/opensearch-notebooks-date-format/6919 "2021-09-03T07:22:11Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![corduroy](https://avatars.discourse-cdn.com/v4/letter/c/e274bd/32.png) [@corduroy](https://forum.opensearch.org/u/corduroy)\
**Post date:** [September 3, 2021, 7:22am UTC](https://forum.opensearch.org/t/opensearch-notebooks-date-format/6919/1 "2021-09-03T07:22:11Z")

</div>

Hi community members,  
I have try to create an index template for mapping differrent date format properties to the .opensearch-notebooks index in order to change the date format of the notebooks layout, in the fields highlighted (Created, visualization date range) in the image below:

 ![monthly_metrics_report](https://us1.discourse-cdn.com/flex019/uploads/mauve_hedgehog/original/2X/e/e58b424f7fb45deef3482854dcf3017039e15a4a.png)

However .opensearch-notebooks mapping properties (createdTimeMs, lastUpdatedTimeMs) do not correspond to the targeted fields. This setting can be especially useful for users who need to display local date.

---

<div class="post-metadata">

**Author:** ![searchymcsearchface](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/searchymcsearchface/32/868_2.png) [@searchymcsearchface](https://forum.opensearch.org/u/searchymcsearchface)\
**Post date:** [September 3, 2021, 1:13pm UTC](https://forum.opensearch.org/t/opensearch-notebooks-date-format/6919/2 "2021-09-03T13:13:22Z")

</div>

OK - so you’re looking for alternate date format or time zone?

---

<div class="post-metadata">

**Author:** ![corduroy](https://avatars.discourse-cdn.com/v4/letter/c/e274bd/32.png) [@corduroy](https://forum.opensearch.org/u/corduroy)\
**Post date:** [September 3, 2021, 1:25pm UTC](https://forum.opensearch.org/t/opensearch-notebooks-date-format/6919/3 "2021-09-03T13:25:12Z")

</div>

Hi Kyle, I’m looking to display an alternate date format.

---

<div class="post-metadata">

**Author:** ![searchymcsearchface](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/searchymcsearchface/32/868_2.png) [@searchymcsearchface](https://forum.opensearch.org/u/searchymcsearchface)\
**Post date:** [September 3, 2021, 2:01pm UTC](https://forum.opensearch.org/t/opensearch-notebooks-date-format/6919/4 "2021-09-03T14:01:35Z")

</div>

You can change the date format by going to **Stack Management \> Advanced Settings \> Date Format**

---

<div class="post-metadata">

**Author:** ![corduroy](https://avatars.discourse-cdn.com/v4/letter/c/e274bd/32.png) [@corduroy](https://forum.opensearch.org/u/corduroy)\
**Post date:** [September 3, 2021, 2:07pm UTC](https://forum.opensearch.org/t/opensearch-notebooks-date-format/6919/5 "2021-09-03T14:07:18Z")

</div>

Is this the right format to display the day first? DD MMM, YYYY @ HH:mm:ss.SSS.  
For some reason changes doesn’t applied.

---

<div class="post-metadata">

**Author:** ![corduroy](https://avatars.discourse-cdn.com/v4/letter/c/e274bd/32.png) [@corduroy](https://forum.opensearch.org/u/corduroy)\
**Post date:** [September 9, 2021, 11:15am UTC](https://forum.opensearch.org/t/opensearch-notebooks-date-format/6919/6 "2021-09-09T11:15:42Z")

</div>

Is it possible to add current date in a notebook by any known method (visualization, code block)?  
I’ve used sql query ( **SELECT curdate() as date FROM \_all LIMIT 1**) but can you recommend a more elegant way?

---

<div class="post-metadata">

**Author:** ![searchymcsearchface](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/searchymcsearchface/32/868_2.png) [@searchymcsearchface](https://forum.opensearch.org/u/searchymcsearchface)\
**Post date:** [September 9, 2021, 5:06pm UTC](https://forum.opensearch.org/t/opensearch-notebooks-date-format/6919/7 "2021-09-09T17:06:08Z")

</div>

AHHH. This is a question about _notebooks_ not the reporting feature (as indicated by the category). It doesn’t appear that _notebooks_ is obeying the date formatting feature (reports does). I think this deserves an issue - feel free to add context here:

[https://github.com/opensearch-project/dashboards-notebooks/issues/72](https://github.com/opensearch-project/dashboards-notebooks/issues/72)
