# How can an admin set the datetime format?

**URL:** <https://meta.discourse.org/t/how-can-an-admin-set-the-datetime-format/28006>\
**Category:** Support\
**Created:** [April 27, 2015, 5:58pm UTC](https://meta.discourse.org/t/how-can-an-admin-set-the-datetime-format/28006 "2015-04-27T17:58:11Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)\
**Post date:** [April 30, 2015, 3:43am UTC](https://meta.discourse.org/t/how-can-an-admin-set-the-datetime-format/28006/2 "2015-04-30T03:43:47Z")

</div>

You can change the client-side ones with code in `</head>`:

```plaintext
<script>
I18n.translations.en.js.dates.time = "HH:mm"
I18n.translations.en.js.dates.long_with_year = "DD MMM YYYY HH:mm:ss"
I18n.translations.en.js.dates.long_date_with_year = "DD MMM YYYY HH:mm:ss"
I18n.translations.en.js.dates.long_no_year_no_time = "DD MMM YYYY"
I18n.translations.en.js.dates.long_with_year_no_time = "DD MMM YYYY"
</script>

```

Build the rest using [Moment.js | Docs](http://momentjs.com/docs/)

---

_[View the full topic](https://meta.discourse.org/t/how-can-an-admin-set-the-datetime-format/28006)._
