strdate:string;strdate:=formatdatetime('yyyy-mm-dd hh:tt:ss',now);