import wixData from 'wix-data';
$w.onReady(function () {
$w("#dataset1").onReady(() => {
$w("#dataset1").setFilter(wixData.filter()
.ge('expiry', new Date())
)
})
setInterval(() => {
$w("#dataset1").onReady(() => {
$w("#dataset1").setFilter(wixData.filter()
.ge('expiry', new Date())
)
})
}, 5000)
})
export function button30_click(event) {
let date = new Date()
let ey = date.getFullYear()
let em = date.getMonth()
let ed = date.getDate() + 1
let eh = date.getHours()
let es = date.getMinutes()
let expiry = new Date(ey, em, ed, eh, es)
$w('#dataset1').setFieldValue("expiry", expiry)
//Add your code for this event here:
}
Read this article. -especially the parts about titles & descriptions. #cleaninguptheforum
Please edit your post and title, and explain what you are trying to do and what your question is.