Jump to content

recurring dates


 Share

This topic is 2832 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I have to recreate the 'repeat event' functionality you would find in a calendar app such as Apple's 'calendar' etc.

 

I have been looking around from a modular solution but haven't found anything. Before I begin does anyone have a suggestion, 

Link to comment
Share on other sites

challenge yes, fun not so much.

 

Almost done though. I am trying to

a. find the difference between each number in an array:

b. then find the difference to loop back to the first number + 7: 

 

2  — Mon
3  — Tue
6  — Fri

 

needed result:

1   [tue - mon]

3   [fri - tue]

3   [next mon - fri]

 

 

 

weekly-frequency.png

Link to comment
Share on other sites

I am a zero for the custom frequency. So I am open to suggestions.

My plan was to determine the sequence of days selected in weekly and the calc against start date, then multiplying by the loop 

Link to comment
Share on other sites

This is not easy (and I am not eager to get into it). I suggest you asses your exact needs on this - because the more generic you will try to make this, the more difficult it will be. Case in point: this "sequence of intervals" that you wanted to compute depends upon the day of the week where the first occurrence of the event occurs; it can be "1, 3, 3", "3, 3, 1" or "3, 1, 3".

  • Like 1
Link to comment
Share on other sites

This topic is 2832 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.