How to Calculate Number of days Between Two Dates for Custom Hotel Booking?

I’m using individual dates instead of date ranges to have more control over the booking logic, and at this point, I’m pretty committed to this path. I’m working on a flexible booking feature and want to run a recursive workflow to generate a list of dates between a selected start and end date.

I’ve heard this can be done with range logic, but I’m still confused about how to actually get the full list of dates between the start and end. Any guidance on how to approach this using either method would be super helpful

Feel free to use this plugin to generate a list of dates

1 Like

Okay this helpful, I’m still stuck how do I get the numbers of dates? I would know how to with a range however when selecting dates I’m not quite sure. Never I figured it out thanks!

For anyone ever wondering

Look, I know you are building a custom light-weight solution.
I also created a custom scheduler, for a client, from zero. The only plugin is used in “list Of dates” which generates a list of dates obviously - Which I highly recommend you to try for this.

In my case, I used it to populate a Repeating Group’s data source but I’m pretty sure you can make it work to save the list in the database as well, if that’s what you are trying to do.

PS: Stay away from date ranges, they tend to fail every now and then.