Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Tasmin's avatar

Date function

I have a timestamp field in my table. I only want to choose year for this field. Is there any way so that I can use the date function of php but only the years will be shown.

0 likes
1 reply

Please or to participate in this conversation.