Hi there. I need to generate some dummy data where I have an array of operations with dates from and to. I its easy to create random dates from and to that is always after from, but I need to find a way that the next dataset has a FROM that is at least one day after the previous TO.
Any ideas?
{
"from": "2024-04-24",
"to": "2024-04-29",
"operations": [...]
},
{
"from": "2024-04-30",
"to": "2024-05-12",
"operations": [...]
}
]
},