# How to extract two slot values having time

**URL:** <https://forum.rasa.com/t/how-to-extract-two-slot-values-having-time/11882>\
**Category:** Rasa Open Source\
**Created:** [June 21, 2019, 10:07am UTC](https://forum.rasa.com/t/how-to-extract-two-slot-values-having-time/11882 "2019-06-21T10:07:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mukultiwari127](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/mukultiwari127/32/4790_2.png) [@mukultiwari127](https://forum.rasa.com/u/mukultiwari127)\
**Post date:** [June 21, 2019, 10:07am UTC](https://forum.rasa.com/t/how-to-extract-two-slot-values-having-time/11882/1 "2019-06-21T10:07:19Z")

</div>

I have a FormAction for Applying Leave which requires 3 fields

1. Leave\_Type
2. Start\_Date
3. End\_Date

Now how to extract date and set appropriately in the slots. As the user input can simply be just a date value like - “12/09/2017” or “12 July 2007” or “Sept 21 2016”. The Form will prompt for each of the slot.

---

<div class="post-metadata">

**Author:** ![stacks13](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/stacks13/32/3625_2.png) [@stacks13](https://forum.rasa.com/u/stacks13)\
**Post date:** [June 22, 2019, 4:12pm UTC](https://forum.rasa.com/t/how-to-extract-two-slot-values-having-time/11882/2 "2019-06-22T16:12:16Z")

</div>

You can do this by using the `slot_mappings` function in your form class. Take a look at this:

> **[Forms](https://rasa.com/docs/rasa/forms/)**
>
> Follow a rule-based process of information gathering using forms in open source bot framework Rasa.

Create a common intent (like “inform”) and a date entity for getting the date values.

---

<div class="post-metadata">

**Author:** ![mukultiwari127](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/mukultiwari127/32/4790_2.png) [@mukultiwari127](https://forum.rasa.com/u/mukultiwari127)\
**Post date:** [June 24, 2019, 11:51am UTC](https://forum.rasa.com/t/how-to-extract-two-slot-values-having-time/11882/3 "2019-06-24T11:51:34Z")

</div>

Thanks for pointing out. This works !!😃
