@shan
This is my code and my repeater. trying to change the date from the full long version to jus the first line of day month year.
thanks.
Important forum update
This forum is migrating to one unified Wix community forum starting July 26th, and will be read-only during the process.
Wishlist Page is the official platform for requesting new features. You can vote, comment, and track the status of the requested features.
Under your dataset's onReady function do this:
export function dataset1_ready() { $w("#repeater1").onItemReady( ($item, itemData, index) => { $w("#repeater1").forEachItem( () => { var newDate = new Date($item("#date").text); //creating a js date instance $item("#date").text = String(newDate.toDateString()); //setting the date }); }); }
This will give you the date in American English: Tue Mar 12 2019