Date type problem using PHP/MSSQL

admin

Administrator
Staff member
I have a problem dealing with datetime fields in MSSQL 7.0 :

instruction like

$ShownDate = date("d-M-y",MyMSSQLDateField);

returns me a $ShownDate containing "01-01-1970"

I think Unix timestamps are integers. I know that MS timestamps are floats.
So, does anyone knows how to convert the MSSQL timestamp into a valid UNIX timestamp like the one PHP loves ?
 
Back
Top