# DATE & TIME in real time

**URL:** <https://community.glideapps.com/t/date-time-in-real-time/24359>\
**Category:** Ask for Help\
**Created:** [March 16, 2021, 3:06pm UTC](https://community.glideapps.com/t/date-time-in-real-time/24359 "2021-03-16T15:06:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marlon\_Oliveira](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/marlon_oliveira/32/21683_2.png) [@Marlon\_Oliveira](https://community.glideapps.com/u/Marlon_Oliveira)\
**Post date:** [March 16, 2021, 3:06pm UTC](https://community.glideapps.com/t/date-time-in-real-time/24359/1 "2021-03-16T15:06:14Z")

</div>

Good morning friends.

I created a subscription plan for my app and I’m creating a status bar that will increase in real time as the days go by until it reaches 100%,  
I put a due date and subtract it from the actual date (DATAVENCIMENTO - DATATEMPOREAL), it brings me time backwards, however when putting in the status bar the percentage goes backwards too.  
I would like to know how I can put the date being added to the status bar, has anyone done this procedure?

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [March 16, 2021, 3:19pm UTC](https://community.glideapps.com/t/date-time-in-real-time/24359/2 "2021-03-16T15:19:32Z")

</div>

How do you set the due date? What do you use for the max value in the progress bar?

---

<div class="post-metadata">

**Author:** ![Marlon\_Oliveira](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/marlon_oliveira/32/21683_2.png) [@Marlon\_Oliveira](https://community.glideapps.com/u/Marlon_Oliveira)\
**Post date:** [March 16, 2021, 3:26pm UTC](https://community.glideapps.com/t/date-time-in-real-time/24359/3 "2021-03-16T15:26:36Z")

</div>

I created a column of type (date & time) in it the administrator selects the due date

 ![](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/c/3/c3f8069707a82214721442459bd06ed7772dedc3.png)

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [March 16, 2021, 3:34pm UTC](https://community.glideapps.com/t/date-time-in-real-time/24359/4 "2021-03-16T15:34:13Z")

</div>

So, it looks like you have a start date, a due date, and the number of days in a plan. All you need to do is change your math formula a little bit to look something like this.

Plan Days - (due date - current date)

That will allow your progress bar to count up instead of down.

---

<div class="post-metadata">

**Author:** ![Marlon\_Oliveira](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/marlon_oliveira/32/21683_2.png) [@Marlon\_Oliveira](https://community.glideapps.com/u/Marlon_Oliveira)\
**Post date:** [March 16, 2021, 3:41pm UTC](https://community.glideapps.com/t/date-time-in-real-time/24359/5 "2021-03-16T15:41:20Z")

</div>

perfect friend, that was it.  
I did and it worked correctly.  
Thank you very much for your help.  
I am very happy.

---

<div class="post-metadata">

**Author:** ![NoCodeAndy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/nocodeandy/32/62530_2.png) [@NoCodeAndy](https://community.glideapps.com/u/NoCodeAndy)\
**Post date:** [January 17, 2024, 4:52pm UTC](https://community.glideapps.com/t/date-time-in-real-time/24359/6 "2024-01-17T16:52:55Z")

</div>


