Quantcast
Channel: Mockaroo Community Forum - Latest posts
Viewing all articles
Browse latest Browse all 2665

Sequential dates (no repeating)

$
0
0

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": [...]
}
			]
		},

Viewing all articles
Browse latest Browse all 2665

Trending Articles