{"version":"1.0","type":"rich","title":"Get dates in between two dates with JavaScript.","description":"This example shows how to generate an array of all dates between a given start and end date using plain JavaScript. It defines a `getDates` function that iterates from the start date, pushing each date into an array, and increments the current date by one day using a custom `addDays` helper that leverages the native `Date` object and its `setDate` method. The code then demonstrates usage with two sample dates, logging each resulting date to the console. It relies solely on the standard JavaScript `Date` API, with no external libraries.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-0a4d4ff86bdf1ac14e94e735fd5b218b?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}