How to check current time is between start time stamp and end time stamp

Hi All,

Can someone help me in getting current time is between given start time and end time ?

startTimestamp : 2022-05-03 09:23:00.000+0200

endTimestamp : 2022-05-05 09:23:00.000+0200

Thanks,
Naresh

@Mandava_Naresh

Hope startTimestamp and endTimestamp variables are of type DateTime.

If yes then check below condition in IF activity.

   startTimestamp < Now AND Now < endTimestamp
1 Like

startTimestamp and endTimestamp variables are string type which we extract from some other output string

you just need to convert the strings to a DateTime

CDate(startTimestamp) > Now AND Now < CDate(endTimestamp)

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.