Comparing Any type with Date type
Options
![Malintha Adikari](https://us.v-cdn.net/6037124/user_avatars/4420220.jpg)
Malintha Adikari
Member ✭
Hi,
I have a Date type data in the Database and I want to compare it with an input (date type) variable. But the smaller or equal does not work here. Actually smaller works but the equal does not work here. Ex: It does not match if the two dates are equal. Should I transform any of the variables to do this comparison?[screenshot (2).png]
I have a Date type data in the Database and I want to compare it with an input (date type) variable. But the smaller or equal does not work here. Actually smaller works but the equal does not work here. Ex: It does not match if the two dates are equal. Should I transform any of the variables to do this comparison?[screenshot (2).png]
Comments
-
I'm not experiencing the same issue. can you please give us more information about your function stack and your variable?
-
Malintha, exactly what do you get from the input? e.g. what is the literal input you are receiving? If you look at recent requests you can see calls to the API endpoint, including the inputs. if you are using run and debug, maybe you could share a screenshot of what that looks like? I suspect the "equals" is a problem of the string representations not being exactly the same.
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback