I have a small problem with a field of my db... the submit time is in decimal(16,4) type and I need to convert it to DATE or DATETIME... but I dont get it...
One exa
in SQL 'select dateadd(ss, 1334041225.5900, '19700101')'
This appears to be a unix timstamp with fractions of seconds, in which case....
print date('r', 1334041225.5900);
(it is possible that this numbering system intersects with Unix timestamps at 2012-04-10 09:00:25 +02:00).
See the manual page for the date function for details of specifics.
It's prob ably possible to do the conversion in SQL but you didn't say what type of DBMS this is.
Before going to insert the decimal u have to convert those decimal values into date format using this statements, echo strtotime(date('Y-m-d H:i:s',1334041225.5900));