Hi,
I would like to present a table with entries from my dataset. On of the entries is of "date and time" type. At the Table only the Date is visiable while I would like to present the Time (only).
Itay
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.
Hi,
I am heavily invested in tables, design wise, Is there an option to do the same for tables?
Itay
Hi Itay,
In this case, I would use repeater and manipulate the text element that shows the date column using code:
$w.onReady(function () { $w("#repeater1").onItemReady(($w, itemData, index) => { showTimeCreated(itemData._createdDate.toString()); }); }); function showTimeCreated(fullDate){ //15 is the index of the first character of the time of a date object //24 is the index of the last character of the time of a date object //example of a date object: Fri Aug 11 2017 15:22:20 GMT+0300 (IDT) $w('#text1').text = fullDate.slice(15 ,24 ) ; }
I hope it's clear.
Good luck!
Tal