I’m creating an input where people can select how often they do a reoccurring task, i.e.:
every 3 days
every 4 weeks
every 2 months
Because you can only add days, months, or years to your current date/time, I’m finding it difficult to add weeks. I’ve tried adding the input value * 7 days, but there isn’t a way I can find to multiply the input value by 7.
Any implementation that works is fine with me, please let me know if you have any solutions/ideas. Thank you!