Hi everyone,
I need some help with a few lines code - can´t seem to find the problem on my own :-/
I want to display a formatted date (= just the date, no time etc…) out of a database in a repeater that I inserted in a dynamic category page.
“text 41” is part of the repeater and is the place holder for the date.
“wann” is my “date and time” column in the database.
I used the following code lines:
export function dynamicDataset_ready() {
let itemObj = $w(“#dynamicDataset”).getCurrentItem();
$w(“#text41”).text = itemObj.wann.toLocaleDateString();
}
Problem: while previewing the result, I get the date out of the first database entry for all repeater items…
What am I doing wrong? Can someone help me?
I would be very thankful for a hint,
Cheers,
Sheridelle