This sample a button to 'Mark Trip as Complete' (Date Field). This button uses the 'setValue' action to set a Date field value to Today's date by using the token @now and formatting it in a way that we exclude the time piece (a string in the format ‘yyyy-MM-dd’).
Q
A
Bug fix?
no
New sample?
yes
Related issues?
none
What's in this Pull Request?
New list formatting sample, to set a Date only field to the Current Date.
Natively we can use the @now token but that gets the hours and minutes too, this sample removes the hours/minutes and saves only the date in the field.
This sample a button to 'Mark Trip as Complete' (Date Field). This button uses the 'setValue' action to set a Date field value to Today's date by using the token @now and formatting it in a way that we exclude the time piece (a string in the format ‘yyyy-MM-dd’).
What's in this Pull Request?
New list formatting sample, to set a Date only field to the Current Date. Natively we can use the @now token but that gets the hours and minutes too, this sample removes the hours/minutes and saves only the date in the field.