Question:
How to update a CMS record field with TODAY’S DATE using Velo code.
Product:
I am using Wix Editor and velo scripts.
I want to record the date that my archived photo has been released for viewing. I am using a CMS record with various descriptive fields for each Archive item. We research and then update each archive items before publishing and at that point I want to record the date. I have tried capturing “today’s” date using -
const d = new Date();
But am getting error message “Value does not match field Type”.
I can use that new Date and convert to local/string -
const javaDate = new Date();
const textDate = javaDate.toLocaleDateString();
That works but creates a text field which I don’t wont. I need to sort on it.
WIX covers lots of detail using the Date Picker but can’t find how to use simply System date.
This should be easy but. . .