What you see in Excel isn’t necessarily what you get in your datatable. After your Read Range set a breakpoint and look at the data in the datatable to see the exact values.
Also, every time you run what you have the Datetime.Now.ToString(“MM/dd/yyyy HH:mm”) will be different. It seems unlikely you’d get a match down to the minute.
What is your goal here, what are you trying to achieve?
If your Date/Time column has 00 as seconds for all rows and the seconds no matters for your filter, you can try this in value field in Filter Data Table
new DateTime(Now.Year, Now.Month, Now.Day, Now.Hour, Now.Minute, 00)
If seconds in your rows are diffrent than 00 but it no matter for your filter, you can try this:
one thing to notice, your expression always return false even if seconds matchs because you are trying to compare different data types (System.DateTime with System.String)
Hi, set breakpoint after read range activity and check the output of read range, date is in correct format or read in another format in local or Immediate panel.
it was told to you, that we check always the data table and not the excel for details
in this FirstAid it introduced on how to use the immediate panel for analyses
But Now is constantly changing and it will be less realistic, that exactly (today: 13 Dez 17:29) the bot will run. (Was also told to you by others)
When doing the filtering on todays date we would refer to todays date like:
And filtering against the parsed date info from the datatable (showing different conversion options) by same approach of refering to the date