sqlca.datetime

returns the datetime format form current used SQL Server

 

messagebox=<sqlca.datetime>

return in MSSQL: 'yyyymmdd hh:mm:ss'