Date of day of the week after a particular date

Hello people!

I need your help with this one issue that I’ve been trying to solve for quite some time.

My requirement is to take one date in the future and day of the week(Sun, Mon, etc) as input and display Date of the first occurrence of that particular day of the week after the given date.
I have tried using Javascript and some plugins but nothing ended up helping me.

Appreciate any help with this one :pray:

Hi there, @maheshkasindi… I created an example that does what you described. In my example, I am using a date/time picker to select the date in the future, and I am using an option set to display the weekdays in a dropdown. The option set has an attribute on it (called day number) that is the weekday number associated with each option (Sunday = 0, Monday = 1, etc).

With that setup in place, a text element with the following expression and conditional produces the resulting date that you described.


Hope this helps.


P.S. Javascript and plugins be damned! Native Bubble or bust, my friend. :slight_smile:

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.