I want to Filter a gallery datasource for the last 30 days of created items.
Seems simple enough and working with sharepoint lists before i have done it as it has been text fields that i can convert to date values and compare to filter out.
This connection is SQL the createdon field shows as e.g. 6/5/2014 1:47 PM
Showing the last 30 days is fine with the DATEADD function - DateAdd(now(),-30,Days)
Both date values appear the same format 6/5/2014 1:47 PM compared to 3/25/2018 4:47 PM.
This doesn't show any results so all i can think is they are not really the same format.
Anyone ran into this issue? I thought about converting to just date values both fields like i would do in SQL however they are datetime in the SQL backend so unlike text fields seems difficult.
Any advice would be great, maybe i am missing something because this seems a very simple filter to want to see in a gallery.
Comparing 30 days ago to a datetime field value