728x90
반응형

MySQL

SELECT DATE_FORMAT(date_column, '%Y-%m-%d') AS formatted_date FROM your_table;

 

JPQL

SELECT FUNCTION('DATE_FORMAT', date_column, '%Y-%m-%d') FROM YourEntity;
반응형
복사했습니다!