# How to prevent smart dates in the calendar bbcode?

**URL:** https://meta.discourse.org/t/how-to-prevent-smart-dates-in-the-calendar-bbcode/168927
**Category:** Support
**Created:** [November 1, 2020, 4:56pm UTC](https://meta.discourse.org/t/how-to-prevent-smart-dates-in-the-calendar-bbcode/168927 "2020-11-01T16:56:27Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Nacho\_Caballero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nacho_caballero/32/130189_2.png) [@Nacho\_Caballero](https://meta.discourse.org/u/Nacho_Caballero)
#### Post date: [November 1, 2020, 4:56pm UTC](https://meta.discourse.org/t/how-to-prevent-smart-dates-in-the-calendar-bbcode/168927/1 "2020-11-01T16:56:27Z")

</div>

I would like to be able to show a date as a day of the week. Using `dddd` works if the date is at least a week away:

Saturday

```plaintext
[date=2025-11-01 time=18:00:00 timezone="Europe/Madrid" format="dddd"]

```

But if the date is yesterday or in 48 hours, the time appears along with yesterday/today/tomorrow:

 ![image](https://global.discourse-cdn.com/meta/original/3X/5/f/5f57f8109eb63a700fdbf38f5c5a6b4c2b26221d.png)

```plaintext
- [date=2020-10-31 time=18:00:00 timezone="Europe/Madrid" format="dddd"]
- [date=2020-11-01 time=18:00:00 timezone="Europe/Madrid" format="dddd"]
- [date=2020-11-02 time=15:00:00 timezone="Europe/Madrid" format="dddd"]
- [date=2020-11-03 time=15:00:00 timezone="Europe/Madrid" format="dddd"]

```

Is there a way to prevent this smart behavior?

---

<div class="post-metadata">

### Author: ![Slowhand](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/slowhand/32/57436_2.png) [@Slowhand](https://meta.discourse.org/u/Slowhand)
#### Post date: [November 1, 2020, 7:50pm UTC](https://meta.discourse.org/t/how-to-prevent-smart-dates-in-the-calendar-bbcode/168927/2 "2020-11-01T19:50:32Z")

</div>

I asked this question a while ago in [this thread](https://meta.discourse.org/t/insert-date-time-question/140792)

Short answer was to put in the words “calendar=off”

[date=2020-11-01 time=11:10:00 timezone="America/Chicago"calendar=off]

2020-11-01T17:10:00Z

---

<div class="post-metadata">

### Author: ![Nacho\_Caballero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nacho_caballero/32/130189_2.png) [@Nacho\_Caballero](https://meta.discourse.org/u/Nacho_Caballero)
#### Post date: [November 2, 2020, 7:08am UTC](https://meta.discourse.org/t/how-to-prevent-smart-dates-in-the-calendar-bbcode/168927/3 "2020-11-02T07:08:25Z")

</div>

Thank you so much for asking it (and sharing it). 😊

I found the tests here:

[https://github.com/discourse/discourse/blob/master/plugins/discourse-local-dates/test/javascripts/lib/local-date-builder-test.js.es6#L304](https://github.com/discourse/discourse/blob/master/plugins/discourse-local-dates/test/javascripts/lib/local-date-builder-test.js.es6#L304)

I didn’t know there were all these other options: 😅

- timezones
- displayedTimezone
- countdown

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [December 2, 2020, 7:21am UTC](https://meta.discourse.org/t/how-to-prevent-smart-dates-in-the-calendar-bbcode/168927/4 "2020-12-02T07:21:46Z")

</div>

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