![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have a column in my database named signup_date with a datatype of bigint. I want to know how to convert this bigint into datetime correctly as a result of a sql query. My sql query is this SELECT FROM_UNIXTIME(LEFT(signup_date, LENGTH(signup_date) - 3)) AS date_mili, users_id FROM users WHERE users_id = 210693 Signup_date = 1163609047 But results is 1970-01-14 19:13:29 Thanks for the help! -robi |
#3
| |||
| |||
|
|
I have a column in my database named signup_date with a datatype of bigint. I want to know how to convert this bigint into datetime correctly as a result of a sql query. My sql query is this SELECT FROM_UNIXTIME(LEFT(signup_date, LENGTH(signup_date) - 3)) AS date_mili, users_id FROM users WHERE users_id = 210693 Signup_date = 1163609047 But results is 1970-01-14 19:13:29 Thanks for the help! |
#4
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |