# Need help to manipulate date

**URL:** <https://forum.bubble.io/t/need-help-to-manipulate-date/272290>\
**Category:** App Organization\
**Created:** [July 13, 2023, 1:04pm UTC](https://forum.bubble.io/t/need-help-to-manipulate-date/272290 "2023-07-13T13:04:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![LordBriand](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/lordbriand/32/178698_2.png) [@LordBriand](https://forum.bubble.io/u/LordBriand)\
**Post date:** [July 13, 2023, 1:04pm UTC](https://forum.bubble.io/t/need-help-to-manipulate-date/272290/1 "2023-07-13T13:04:45Z")

</div>

Hello friends!  
I’m not good at English but I hope you can understand me well…  
I have a calendar element on my page and a visual element (text) which displays the selected date.  
Now, I added two icons (+ and -) .  
What I want to do is to make  
-the icon + add one day (+1day) to the current selected date  
-And the icon - do the inverse  
But I’ve tried lot of things in vain.  
I need help please 🙏

---

<div class="post-metadata">

**Author:** ![mikeloc](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/mikeloc/32/93001_2.png) [@mikeloc](https://forum.bubble.io/u/mikeloc)\
**Post date:** [July 13, 2023, 1:40pm UTC](https://forum.bubble.io/t/need-help-to-manipulate-date/272290/2 "2023-07-13T13:40:28Z")

</div>

Hi there, @LordBriand… if I understand your post correctly, you should be able to do what you described by using a custom state with a state type of _date_.

When a date is selected from the calendar element, run a workflow that sets a custom state to the selected date. Also, set the text element’s value to the custom state. Then, when the plus icon is clicked, run a workflow that sets the custom state to its current value +(days): 1, and when the minus icon is clicked, set the state to its current value +(days): -1.

Hope this helps.

Best…  
Mike
