# How do i pick specific date as slot

**URL:** <https://forum.rasa.com/t/how-do-i-pick-specific-date-as-slot/17227>\
**Category:** Rasa Open Source\
**Created:** [September 25, 2019, 8:56am UTC](https://forum.rasa.com/t/how-do-i-pick-specific-date-as-slot/17227 "2019-09-25T08:56:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![MohitSinghCS](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/mohitsinghcs/32/5120_2.png) [@MohitSinghCS](https://forum.rasa.com/u/MohitSinghCS)\
**Post date:** [September 25, 2019, 8:56am UTC](https://forum.rasa.com/t/how-do-i-pick-specific-date-as-slot/17227/1 "2019-09-25T08:56:27Z")

</div>

is there any way i can pick specific date like 12-03-2019 as date slot?. i am using duckling to extract date @GauravRoy48

entities:

- date

slot: date: type: text

---

<div class="post-metadata">

**Author:** ![GauravRoy48](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/gauravroy48/32/5063_2.png) [@GauravRoy48](https://forum.rasa.com/u/GauravRoy48)\
**Post date:** [September 25, 2019, 10:16am UTC](https://forum.rasa.com/t/how-do-i-pick-specific-date-as-slot/17227/2 "2019-09-25T10:16:21Z")

</div>

You can try and make use of the [regex](https://rasa.com/docs/rasa/nlu/training-data-format/#regular-expression-features) support to detect date formats and add that to your entity.

[Here](https://regex101.com/) is a great tool to test out whether your regex works.

---

<div class="post-metadata">

**Author:** ![MohitSinghCS](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/mohitsinghcs/32/5120_2.png) [@MohitSinghCS](https://forum.rasa.com/u/MohitSinghCS)\
**Post date:** [September 25, 2019, 11:04am UTC](https://forum.rasa.com/t/how-do-i-pick-specific-date-as-slot/17227/3 "2019-09-25T11:04:14Z")

</div>

Thanks for the reply, i will try this

---

<div class="post-metadata">

**Author:** ![IgNoRaNt23](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/ignorant23/32/8029_2.png) [@IgNoRaNt23](https://forum.rasa.com/u/IgNoRaNt23)\
**Post date:** [September 25, 2019, 11:40am UTC](https://forum.rasa.com/t/how-do-i-pick-specific-date-as-slot/17227/4 "2019-09-25T11:40:31Z")

</div>

Dont understand the problem? If that is a valid date format for you locale, then Duckling extract this and puts it in an entity ‘time’.

To put this into a date-slot add {‘date’: [self.from\_entity(entity=‘time’)]} to your slot mappings

---

<div class="post-metadata">

**Author:** ![MohitSinghCS](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/mohitsinghcs/32/5120_2.png) [@MohitSinghCS](https://forum.rasa.com/u/MohitSinghCS)\
**Post date:** [September 25, 2019, 2:09pm UTC](https://forum.rasa.com/t/how-do-i-pick-specific-date-as-slot/17227/5 "2019-09-25T14:09:41Z")

</div>

Yeah, i tried this and it worked but i am facing another issue now. Date extracted by duckling is correct when i run it locally but it’s one day behind when i ran it on dev server

---

<div class="post-metadata">

**Author:** ![IgNoRaNt23](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/ignorant23/32/8029_2.png) [@IgNoRaNt23](https://forum.rasa.com/u/IgNoRaNt23)\
**Post date:** [September 26, 2019, 6:48am UTC](https://forum.rasa.com/t/how-do-i-pick-specific-date-as-slot/17227/6 "2019-09-26T06:48:46Z")

</div>

Strange, maybe your server’s time is just not right?
