# How do we get grafana to use this date format: dd/mm/yyyy hh: mm: ss (timestamp)

**URL:** <https://community.grafana.com/t/how-do-we-get-grafana-to-use-this-date-format-dd-mm-yyyy-hh-mm-ss-timestamp/54666>\
**Category:** Time Series Panel\
**Tags:** time-selection, timestamp\
**Created:** [October 12, 2021, 6:35pm UTC](https://community.grafana.com/t/how-do-we-get-grafana-to-use-this-date-format-dd-mm-yyyy-hh-mm-ss-timestamp/54666 "2021-10-12T18:35:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![attilialuc](https://avatars.discourse-cdn.com/v4/letter/a/f08c70/32.png) [@attilialuc](https://community.grafana.com/u/attilialuc)\
**Post date:** [October 12, 2021, 6:35pm UTC](https://community.grafana.com/t/how-do-we-get-grafana-to-use-this-date-format-dd-mm-yyyy-hh-mm-ss-timestamp/54666/1 "2021-10-12T18:35:15Z")

</div>

**What i would like**  
I want to use this date format in grafana: 05/10/2021 13:10:10

when i import the csv file into grafana, the format date is change :  
 ![image](https://us1.discourse-cdn.com/grafana/original/3X/e/f/efa69056a07c56f985ca73b6cbcc02af6df3ec4c.png)

how i can fix this problem while using this format: dd/mm/yyyy hh:mm:ss

Thanks

---

<div class="post-metadata">

**Author:** ![codlord](https://avatars.discourse-cdn.com/v4/letter/c/b5ac83/32.png) [@codlord](https://community.grafana.com/u/codlord)\
**Post date:** [October 12, 2021, 7:12pm UTC](https://community.grafana.com/t/how-do-we-get-grafana-to-use-this-date-format-dd-mm-yyyy-hh-mm-ss-timestamp/54666/2 "2021-10-12T19:12:07Z")

</div>

You have not said what platform or version of Grafana you are using but assuming you are on v7.2 or above then you need to change the [date\_formats] section of the Grafana config file. For Linux this is usually /etc/grafana/grafana.ini

For example some of the values you can set:

[date formats]  
full\_date = DD/MM/YYYY HH:mm:ss  
interval\_day = MM/DD  
interval\_hour = MM/DD HH:mm  
interval\_minute = HH:mm  
interval\_month = YYYY-MM  
interval\_second = HH:mm:ss  
interval\_year = YYYY

More info:

> **[Configuration](https://grafana.com/docs/grafana/latest/administration/configuration/#date_formats)**
>
> Configuration documentation

---

<div class="post-metadata">

**Author:** ![attilialuc](https://avatars.discourse-cdn.com/v4/letter/a/f08c70/32.png) [@attilialuc](https://community.grafana.com/u/attilialuc)\
**Post date:** [October 18, 2021, 2:08pm UTC](https://community.grafana.com/t/how-do-we-get-grafana-to-use-this-date-format-dd-mm-yyyy-hh-mm-ss-timestamp/54666/3 "2021-10-18T14:08:47Z")

</div>

Thanks for the response.  
But i still have the same problem. I’m using grafana 8.1.5 version. I’m using infinity and CSV datasources. I have this date format in my csv file:

![image](https://us1.discourse-cdn.com/grafana/original/3X/6/f/6f7015195d7b03fb5b4094fac7f766f450caceee.png)

When i put my file in grafana, the date format has change to : 10/05/2021 (MM/DD/YYYY) not (DD/MM/YYYY)  
In grafana.ini, i made these modifications and it does not work:  
 ![image](https://us1.discourse-cdn.com/grafana/original/3X/5/1/51b08fdbf5ec3756413943d3620bb204259a78bb.png)

I don’t know, if you have an idea.

Thanks

---

<div class="post-metadata">

**Author:** ![lexnared](https://avatars.discourse-cdn.com/v4/letter/l/b5e925/32.png) [@lexnared](https://community.grafana.com/u/lexnared)\
**Post date:** [April 9, 2022, 7:18am UTC](https://community.grafana.com/t/how-do-we-get-grafana-to-use-this-date-format-dd-mm-yyyy-hh-mm-ss-timestamp/54666/4 "2022-04-09T07:18:57Z")

</div>

Here is an extract of my ini file.  
Maybe it helps someone.  
I can only say it works perfectly

```auto
[date_formats]
# For information on what formatting patterns that are supported https://momentjs.com/docs/#/displa$

# Default system date format used in time range picker and other places where full time is displayed
full_date = DD-MM-YYYY HH:mm:ss

# Used by graph and other places where we only show small intervals
interval_second = HH:mm:ss
interval_minute = HH:mm
interval_hour = DD/MM HH:mm
interval_day = DD/MM
interval_month = MM-YYYY
interval_year = YYYY

```

---

<div class="post-metadata">

**Author:** ![danieltx7](https://avatars.discourse-cdn.com/v4/letter/d/ed8c4c/32.png) [@danieltx7](https://community.grafana.com/u/danieltx7)\
**Post date:** [February 17, 2024, 5:41pm UTC](https://community.grafana.com/t/how-do-we-get-grafana-to-use-this-date-format-dd-mm-yyyy-hh-mm-ss-timestamp/54666/5 "2024-02-17T17:41:56Z")

</div>

**service grafana-server restart** works here
