Hi All, I am having an issue with a flow I am Creating
I have some data like this
File # Closing Date
111-1111-111 01/02/2022
222-2222-222 (blank)
333-3333-333 18/02/2022
444-4444-444 21/02/2022
555-5555-555 02/03/2022
This is imported into a datatable dtInput
With this criteria
I have then created a filter
And this is the result
I am not sure why the filter criteria isn’t working, could someone point me in the right direction please?
(From r in dt_test.Select()
Where String.IsNullOrEmpty(r("Closing Date").toString) AndAlso Datetime.ParseExact(r("Closing Date").toString,“dd/MM/yyyy”,System.Globalization.CultureInfo.InvariantCulture) < DateCheck
Select r).CopyToDatatable
Use this if date check will always be Today’s date
(From r in dt_test.Select()
Where String.IsNullOrEmpty(r("Closing Date").toString) AndAlso Datetime.ParseExact(r("Closing Date").toString,“dd/MM/yyyy”,System.Globalization.CultureInfo.InvariantCulture) < Datetime.Now.AddHours(-DateTime.Now.Hour).AddMinutes(-Datetime.Now.Minute).AddSeconds(-Datetime.Now.Second)
Select r).CopyToDatatable
(From r in dt_test.Select()
Where String.IsNullOrEmpty(r("Closing Date").toString) AndAlso Datetime.ParseExact(r("Closing Date").toString,“dd/MM/yyyy”,System.Globalization.CultureInfo.InvariantCulture) < Datetime.ParseExact(DateCheck,“dd/MM/yyyy”,System.Globalization.CultureInfo.InvariantCulture)
Select r).CopyToDatatable