# Input Date using Library Browser

**URL:** <https://forum.robotframework.org/t/input-date-using-library-browser/5579>\
**Category:** Robot Framework\
**Created:** [17 April 2023 20:03 UTC](https://forum.robotframework.org/t/input-date-using-library-browser/5579 "2023-04-17T20:03:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![netospt](https://avatars.discourse-cdn.com/v4/letter/n/bc8723/32.png) [@netospt](https://forum.robotframework.org/u/netospt)\
**Post date:** [17 April 2023 20:03 UTC](https://forum.robotframework.org/t/input-date-using-library-browser/5579/1 "2023-04-17T20:03:44Z")

</div>

Hi guys, I need your help with this problem, I need to input a date , but I can’t to do it. This form not accept some ways to input with date. for instance:  
Not accepted : ${day} ${month} ${year}= Evaluate “12/12/2024”.split(“/”)  
Not accept: Fill Text with Strings  
Not accepted : ${date\_english}= Convert Date ${date} exclude\_millis=yes result\_format=%m/%d/%Y  
${data} Date Time Between start\_date=-30y end\_date=-18y  
Those variables are not accepted in this form(picture), this element is the type=date.  
I already tried using the to click in the calendar, but all the field accept click and I need to select only the image calendar in this picture because the calendar just shows when clicking in the picture. All the element is together (image the calendar and date).  
Your know how I fill this text only Fill Text ? or using calendar ?

I noticed that field there is a field called “value” in properties, when I put a date, this value is filled.  
But not show in Element HTML.

Element:

---

<div class="post-metadata">

**Author:** ![netospt](https://avatars.discourse-cdn.com/v4/letter/n/bc8723/32.png) [@netospt](https://forum.robotframework.org/u/netospt)\
**Post date:** [17 April 2023 20:05 UTC](https://forum.robotframework.org/t/input-date-using-library-browser/5579/2 "2023-04-17T20:05:55Z")

</div>

![element](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/2X/2/21236b93756b1aad5e2a2483fc8b80dfecb346e9.png)

---

<div class="post-metadata">

**Author:** ![Pramesh](https://avatars.discourse-cdn.com/v4/letter/p/848f3c/32.png) [@Pramesh](https://forum.robotframework.org/u/Pramesh)\
**Post date:** [17 April 2023 20:55 UTC](https://forum.robotframework.org/t/input-date-using-library-browser/5579/3 "2023-04-17T20:55:28Z")

</div>

Hello,

I created a html file based on the above element:

```
<input type="date" inputmode="numeric" class="form-control" id="registration-form-birthdate" data-missing-error="Você precisa preencher o campo acima" data-pattern-mismatch="error.message.parse.birthdate.profile.form" data-range-error="Digite uma data de nascimento válida" aria-describedby="form-birthdate-error" placeholder="Data de Nascimento" name="dwfrm_profile_customer_birthdate" required="" aria-required="true" value="" maxlength="10" pattern="^\d{2}/\d{2}/\d{4}$" min="1900-01-01" max="2023-04-17" style="outline: green dotted 2px !important;">

```

and I was able to enter the date using the [Type Text](https://marketsquare.github.io/robotframework-browser/Browser.html#Type%20Text) keyword. Example: `Type Text css=#registration-form-birthdate 04172023`. This selected the 17th Apr 2023 on the calendar.

---

<div class="post-metadata">

**Author:** ![netospt](https://avatars.discourse-cdn.com/v4/letter/n/bc8723/32.png) [@netospt](https://forum.robotframework.org/u/netospt)\
**Post date:** [17 April 2023 21:05 UTC](https://forum.robotframework.org/t/input-date-using-library-browser/5579/4 "2023-04-17T21:05:15Z")

</div>

tks so much @Pramesh , it worked here. 😃
