IF Condition Date in Data Table is greater then 30 days

I’m having a hard time figuring out an If condition where a date in a DataTable is greater then 30 days. Any advice would be greatly appreciated

The type of CurrentRow("Payment Date") is object rather than DateTime.

Solution (see if you can figure this out yourself first)

If the column type is DateTime, you can use CurrentRow.Field(DateTime)("Payment Date") > AgedDate. If not, you can either change the column type (before data is added to the data table) or do DateTime.Parse(CurrentRow("Payment Date").ToString()) > AgedDate.

.Field(DateTime) is what i was missing. Thank you so much @Foxtrek_64. im going to so some reach on “Field”

I appreciate the help and education very much

1 Like

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