Preskoči in pojdi v glavno vsebino

Dates from Custom Fields

v Date and Time Operations
Seznam avtorjev
Objavljeno: 16. mar. 2017|Nazadnje Posodobljeno: 3. nov. 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
UporabnoNeuporabno
naslednja stranFinding an Interval between Two Date/Times
Prejšnja stranRelative Dates with Placeholders

Pred objavo komentarja se moraš prijaviti.