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?
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?
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
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 .
That is probably because Sep 17 12:00 am is midnight (the start of the 17th) and 8:00 am is 8 hours later.
This topic was automatically closed after 70 days. New replies are no longer allowed.