I have problem to convert data saved as INTEGER in mysql server to display datetime format.
I have access to sql server view using php.
Date like:
2008-02-29 00:00:00.000
i saved like: 75668 (integer)
How to format
75668
to
date("Y-m-d H:i:s")
? and
date("Y-m-d H:i:s")
to this format (like 75668)?
I see that in sql server it's done like:
cast (a.DATA - 36163 as datetime) DATA_W
How can I format this value using php?
In structure this table I have :
[DATA] [dbo].[T_DATA_TYP] NULL,
this column is create bu custom type. Type declaration is :
CREATE TYPE [dbo].[T_DATA_TYP] FROM [int] NULL