Need to get in between Date time from below inputs

Hi Team,

Need to get in between Date time from below inputs

Input1: Oct 9, 2024 3:52 PM
Input2: Oct 10, 2024 3:52 PM

Output like In between above inputs like (Outputs must be before input2 and after input1)

Output1: Oct 10, 2024 10:30 AM
Output 2: Oct 10, 2024 12:30PM

Anyone help please

Thanks
shaik

@shaik.muktharvalli1,

How much should be the difference because if you just add a minute also in Input 1 that would satisfy your condition [ Outputs must be before input2 and after input1]?

outputs must in input2 date @ashokkarale

thanks
shaik

@shaik.muktharvalli1,

In that case you can subtract a minute from input2. Assuming your Input2 is a datetime datatype variable this will give you the output.

input2.AddMinutes(-1)