To extract date from a MySQL field in 10-digit integer format, we can use FROM_UNIXTIME function.
Assuming you are connected via ODBC (SPT):
=SQLExec(m.nConnect,'select from_unixtime(somefield) as xdatetime from
sometable','SomeViews') && should
produce datetime
=SQLExec(m.nConnect,'select Date(from_unixtime(somefield)) as xdate from
sometable','SomeViews') &&should produce
date format
No comments:
Post a Comment