# Natural language processing for date chooser

**URL:** <https://meta.discourse.org/t/natural-language-processing-for-date-chooser/199608>\
**Category:** Feature\
**Created:** [August 7, 2021, 6:18pm UTC](https://meta.discourse.org/t/natural-language-processing-for-date-chooser/199608 "2021-08-07T18:18:57Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Grayden\_Shand](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/grayden_shand/32/166586_2.png) [@Grayden\_Shand](https://meta.discourse.org/u/Grayden_Shand)\
**Post date:** [August 10, 2021, 1:19pm UTC](https://meta.discourse.org/t/natural-language-processing-for-date-chooser/199608/2 "2021-08-10T13:19:24Z")

</div>

This library might help with implementation: [GitHub - wanasit/chrono: A natural language date parser in Javascript · GitHub](https://github.com/wanasit/chrono)

That said I suspect it would be a challenge to get robust language support for this.

> The current fully supported languages are `en` , `ja` , and `fr` ( `de` and `pt` are partially supported). Other languages from v1 ( `nl` and `zh` ) are under development.

* * *

Also, another UX pattern to consider is automatically replacing date strings in the body of a post with Discourse date/time objects. Sort of like one-boxing but for dates. E.g. if I type “next monday at 2pm” in my post, it automatically converts that to 2021-08-17T18:00:00Z.

---

_[View the full topic](https://meta.discourse.org/t/natural-language-processing-for-date-chooser/199608)._
