# Current date and checkbox

**URL:** https://community.glideapps.com/t/current-date-and-checkbox/68593
**Category:** Ask for Help
**Created:** [December 12, 2023, 8:20am UTC](https://community.glideapps.com/t/current-date-and-checkbox/68593 "2023-12-12T08:20:18Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Artem\_Lisenkov](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/artem_lisenkov/32/62415_2.png) [@Artem\_Lisenkov](https://community.glideapps.com/u/Artem_Lisenkov)
#### Post date: [December 12, 2023, 8:20am UTC](https://community.glideapps.com/t/current-date-and-checkbox/68593/1 "2023-12-12T08:20:18Z")

</div>

Good afternoon! I need to refine the application so that when there is a check mark in the checkbox, the date is automatically put in the required field. That is, there is an element of socks, if you tick the checkbox, then the current date is automatically put in the next field and does not change over time. If the check mark is removed, the date also disappears, and so on in a circle. I tried to do it via if-then-else, but this option is not suitable, since this type does not support working with dates and can only operate with existing values.

---

<div class="post-metadata">

### Author: ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)
#### Post date: [December 12, 2023, 9:10am UTC](https://community.glideapps.com/t/current-date-and-checkbox/68593/2 "2023-12-12T09:10:39Z")

</div>

- Create a Math column that returns the Current DateTime (use `Now` as a replacement value)
- Use that Math column in your if-then-else column

 ![CleanShot 2023-12-12 at 17.10.03@2x](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/4/84c62ed39c49460e76cebf92914ee8fef14abb73.png)

---

<div class="post-metadata">

### Author: ![Artem\_Lisenkov](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/artem_lisenkov/32/62415_2.png) [@Artem\_Lisenkov](https://community.glideapps.com/u/Artem_Lisenkov)
#### Post date: [December 12, 2023, 9:51am UTC](https://community.glideapps.com/t/current-date-and-checkbox/68593/3 "2023-12-12T09:51:29Z")

</div>

I was thinking about a similar solution, but with the date change in Today, the date in Today If Checked will change. But I need the current date to be set after clicking the checkbox and it does not change over time.

---

<div class="post-metadata">

### Author: ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)
#### Post date: [December 12, 2023, 9:53am UTC](https://community.glideapps.com/t/current-date-and-checkbox/68593/4 "2023-12-12T09:53:48Z")

</div>

Okay, in that case what you probably need is a custom action that sets both values at the same time.

---

<div class="post-metadata">

### Author: ![Artem\_Lisenkov](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/artem_lisenkov/32/62415_2.png) [@Artem\_Lisenkov](https://community.glideapps.com/u/Artem_Lisenkov)
#### Post date: [December 12, 2023, 11:12am UTC](https://community.glideapps.com/t/current-date-and-checkbox/68593/5 "2023-12-12T11:12:06Z")

</div>

Can you describe it in more detail, please?

---

<div class="post-metadata">

### Author: ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)
#### Post date: [December 12, 2023, 11:15am UTC](https://community.glideapps.com/t/current-date-and-checkbox/68593/6 "2023-12-12T11:15:51Z")

</div>

Well, you can’t attach an action to a checkbox/switch component.  
So my suggestion would be to use a button, and add an action to the button that does a Set Column Values on the current row, setting both the Timestamp and the Boolean column at the same time.

---

<div class="post-metadata">

### Author: ![Artem\_Lisenkov](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/artem_lisenkov/32/62415_2.png) [@Artem\_Lisenkov](https://community.glideapps.com/u/Artem_Lisenkov)
#### Post date: [December 12, 2023, 11:30am UTC](https://community.glideapps.com/t/current-date-and-checkbox/68593/7 "2023-12-12T11:30:50Z")

</div>

Thx you so much for your advice, i’ll try it.

---

<div class="post-metadata">

### Author: ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)
#### Post date: [December 19, 2023, 11:31am UTC](https://community.glideapps.com/t/current-date-and-checkbox/68593/8 "2023-12-19T11:31:23Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
