Time & date formulas for variables
Hi everyone, I’m trying to create a date picker, and I’ve gotten quite far thanks to Jeff Clarke’s component, (Thanks very much! 🙂) It needs to have an entry field where the date picked in the picker shows as DD - MM - YYYY in a field on top.
This is what I’m trying to achieve-
I want the date field on top to be populated by two entries depending on what the user decides.
If the user selects “Today”, then the date populated should be today’s date. - I’ve managed to make that work using a variable that contains the formula- dateNow()
Then I reformat that into the text field to DD MM YYYY by using the formula- formatDate(TodayDate," DD MM YYYY")
And it seems to work fine-
Unfortunately, that isn’t working for my date picker and I don’t know why.
I’ve created a variable called “DateSelectedFromPicker”, which stores the date selected in the picker-
However, the date field doesn’t get populated with the selection, despite the variable reflecting the date selected in the picker.
Increasing the Start Delay, simply shows me this, but then after the start delay, vanishes again.
The formula I’m using to format the date retrieved from the “DateSelectedFromPicker” variable is - formatDate(DateSelectedFromPicker," DD MM YYYY")
Thanks for reading, any help would be greatly appreciated!