Extract the Day / Month / Year from a Timestamp on MYSQL

后端 未结 3 1504
梦谈多话
梦谈多话 2021-02-04 12:12

I have :

$date = $actualite[\'date\'];

$actualite[\'date\'] is a TIMESTAMP

And I was wondering how can I extract

3条回答
  •  我在风中等你
    2021-02-04 12:55

    You can extract the values directly within your MySQL query

    SELECT DAY(  ) AS DAY, 
           MONTH(  ) AS MONTH, 
           YEAR(  ) AS YEAR
    FROM 

    提交回复
    热议问题