Ana içeriğe geç

Dates from Custom Fields

Date and Time Operations içinde
Yazarlar listesi
Yayımlanan: 16 Mar 2017|Son güncelleme: 3 Kas 2022

If you’re retrieving a date stored in a custom field, it is stored as an integer timestamp rather than real date types, so you need to pass it through the FROM_UNIXTIME function first, e.g.:

SELECT DATE_FORMAT(FROM_UNIXTIME(tickets.custom_data[1]), '%Y-%m-%d') AS 'Date
copy
YararlıYararlı değil
sonraki sayfaFinding an Interval between Two Date/Times
önceki sayfaRelative Dates with Placeholders

Bir yorum gönderebilmek için lütfen oturum açın ya da kayıt olun.