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
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
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
Hi,
I am heavily invested in tables, design wise, Is there an option to do the same for tables?
Itay
error: onItemReady “doesn’t exist for” tables.