Date range | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Date range

How to get missing date range between to dates

12th Jun 2022, 11:19 AM
prasath mohan
prasath mohan - avatar
6 Answers
+ 2
Oh, I see. You can try search for a library that deals with time such as Time4J or use the Time API.
12th Jun 2022, 11:48 AM
Justice
Justice - avatar
0
Can you please elaborate because if you're talking about range, then something cannot be missing since it would technically be within the range.
12th Jun 2022, 11:39 AM
Justice
Justice - avatar
0
Im having two files one with date range and another file with (date range , values) We need to write an output with matching date range and values, default value is given for missing date ranges 1/1/2022 to 4/30/2022 - red 6/30/2022 to 10/31/2022 - blue For the missing date range i need to fill with value green Expected OUTPUT: 1/1/2022 -4/30/2022 = red 5/1/2022 -5/31/2022 = green 6/30/2022 -10/31/2022= blue 11/1/2022 -12/31/2022 = green Justice
12th Jun 2022, 11:41 AM
prasath mohan
prasath mohan - avatar
0
Will try
12th Jun 2022, 12:08 PM
prasath mohan
prasath mohan - avatar
0
Me too.
23rd Aug 2022, 8:44 AM
CeceliaValdez
0
I will try it as well. I hope it works. I was actually searching for https://www.grabmyessay.com/samples/category/astronomy website online where I can read essay samples and when I was searching for it online, I found link to your post as well.
13th Sep 2022, 7:29 PM
Wilma Dutton