What is the backend JavaScript code to create a Date object from a Wix Collection DateTime field?
I aware of general JavaScript date handling. I’m looking for a code example specific to Wix that creates a JavaScript Date object from a database collection DateTime field.
My mistake, I was losing my date because of promise timing. It’s simple as:
wixData.get(“MyCollection”, “000001”)
.then( (results) => {
let row = results;
let myDate = new Date(row.myDateField);
} )