I'm trying to display a table containing date column in Yii2 Framework using GridView widget.
Few specific columns in the oracle table are containing date and time (the rest only date), but when extracting the data by default I only get DD-MM-YYYY, even when running the query in SQL Developer I get the same result, unless I specifically run it with to_char() function.
select to_char(column, 'DD.MM.YYYY HH24:MI:SS') from table;
Will display the full data, I'm fairly new to Oracle databases so I'm unsure how to properly display this in Yii2.
If I use the Yii2 formatter then it formats the date after it retrieves it in DD-MM-YYYY format which will cause the time to be 00:00:00 , instead of the actual time.
Any suggestions?
Thanks!