tech16
1
Hi All,
I am trying to compare two dates as shown below and I am not able to understand why it is failing


I am getting ‘no’ when I compare these two dates

Am I missing anything here?
ntabs
2
Seems to be the expected behavior. Sep 17, 2024 12:00 am is less than Sep 16, 2024 8:00 am that’s why it’s outputting a no result
1 Like
tech16
3
Oh yea. I was getting confused with am and pm 
Thanks
Use change secs to 0 , hours t o 0 , minutes to 0 than compare and if you want to = comparison there is equals round down to operator .
1 Like
That is probably because Sep 17 12:00 am is midnight (the start of the 17th) and 8:00 am is 8 hours later.
1 Like
system
Closed
6
This topic was automatically closed after 70 days. New replies are no longer allowed.