Skip to content

How to use $today function to find matching JSON value? #934

Answered by LeaVerou
ryzen3100 asked this question in Q&A
Discussion options

You must be logged in to vote

Please note that set() will not work in an expression, it's an action function and will exclusively work in Actions.

Your Mavo template does not seem to correspond to the data you have. The JSON this Mavo app would produce is

{
	"tDay": "#"
}

If your data comes from elsewhere, you can do [get(dataStorage, $today)] to get the day name, but do note Mavo cannot create such an object with variable property names (except perhaps with a bunch of workarounds).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ryzen3100
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