I am trying to create a table of dynamic page, On the website i only want to show the Date without time, but the database doesnt hv the option to delete the time, so it just keep showing the date and time on the content.
I have been trying the coding long long time. Doesn’t work at all. Really need help!!!
Really don’t know what i have done wrong. Below is my coding.
// For full API documentation, including code examples, visit http://wix.to/94BuAAs
$w.onReady(function () {
//TODO: write your page related code here...
$w("#dynamicDataset").onReady( () => {
const validDate = $w('#text42').text;
const newDate = validDate.split(' ').splice(0, 4).join(' ');
$w('#text42').text = newDate;
});
} );
Attached with some screen capture
Below is my dynamic repeater
Below is my dataset