Skip to content

How to compare string or date type? #719

Answered by Domenic-MZS
keispace asked this question in Q&A
Discussion options

You must be logged in to vote

Oh i got it now 🙌🏼 💡.

The closest thing right now (as it was said) are the date fns (not mentioned on documentation yet).

With the date-fns you will get a numeric value for each year, month, day, hours, minutes and seconds. To then write a filter for each one specifying that the date year should be greater than x, and/or the month should be greater and so on...

It's clunky. Because there's no direct math yet.

You can see all the date-fns available over here:

;; datetime fns
now year month day hours minutes seconds tz

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@keispace
Comment options

@Domenic-MZS
Comment options

Answer selected by keispace
@Domenic-MZS
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants