# How to handle dates?

**URL:** <https://forum.rasa.com/t/how-to-handle-dates/29967>\
**Category:** Rasa Open Source\
**Created:** [June 9, 2020, 8:09am UTC](https://forum.rasa.com/t/how-to-handle-dates/29967 "2020-06-09T08:09:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sainimohit23](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/sainimohit23/32/9483_2.png) [@sainimohit23](https://forum.rasa.com/u/sainimohit23)\
**Post date:** [June 9, 2020, 8:09am UTC](https://forum.rasa.com/t/how-to-handle-dates/29967/1 "2020-06-09T08:09:53Z")

</div>

I have a doubt regarding the dates. How to handle dates and time as they come in various forms?

In case the entity classifier fails to detect any intent(let’s say city name), is there any way to create some sort of matcher for the undetected cities?

---

<div class="post-metadata">

**Author:** ![bayesianwannabe](https://avatars.discourse-cdn.com/v4/letter/b/bc8723/32.png) [@bayesianwannabe](https://forum.rasa.com/u/bayesianwannabe)\
**Post date:** [June 9, 2020, 5:42pm UTC](https://forum.rasa.com/t/how-to-handle-dates/29967/2 "2020-06-09T17:42:00Z")

</div>

It’s something that I am also checking for the current Rasa version.

For some annotated and tokenized instances, I have some custom entities like DD and MM that are not captured when the model has to infer something as ‘05/10’ with DD: ‘10’ and ‘MM’: ‘05’.

---

<div class="post-metadata">

**Author:** ![Juste](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/juste/32/15_2.png) [@Juste](https://forum.rasa.com/u/Juste)\
**Post date:** [June 22, 2020, 1:42pm UTC](https://forum.rasa.com/t/how-to-handle-dates/29967/3 "2020-06-22T13:42:53Z")

</div>

@sainimohit23 @bayesianwannabe Have you tried duckling? It’s a component which is pretty good at extracting different date types

---

<div class="post-metadata">

**Author:** ![sainimohit23](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/sainimohit23/32/9483_2.png) [@sainimohit23](https://forum.rasa.com/u/sainimohit23)\
**Post date:** [June 22, 2020, 4:47pm UTC](https://forum.rasa.com/t/how-to-handle-dates/29967/4 "2020-06-22T16:47:45Z")

</div>

Thanks for your reply @Juste. I asked this because if I train the signle model for both the entity recognition and intent classification task then DIET will consider both losses in the training process. And theoritically both task will compliment each other in the training process i.e. more robust model.

Anyway I found out that just marking the dates will work.
