skip to Main Content

Mysql – JDBC DATETIME Type

I have a DATETIME column in a MySQL database. I use ResultSet metadata to retrieve the column type and it returns TIMESTAMP which is incorrect. How can I get the correct java.sql.SQLType value for this column? I will try to…

VIEW QUESTION

Which date format is this? – PHP

I want to convert this date-time string 2022-09-30T21:39:25.220185674Z to yyyy-mm-dd hh:mm:ss but it returns 1970-01-01 01:00:00 everytime. Tried with: date('Y-m-d H:i:s', strtotime('2022-09-30T21:39:25.220185674Z')); or date('Y-m-dTH:i:s', strtotime('2022-09-30T21:39:25.220185674Z')); Can you help find out which format this is and how i could corretly format…

VIEW QUESTION
Back To Top
Search