level 7
reshenteng
楼主
比如
SDatetime='2014-05-21 08:50:02'
我想要把他变成'2014-05-21 08:50:01'
我这么写居然报错了
SDatetime:= FormatDateTime('yyyy-mm-dd hh:mm:ss',(incsecond(StrToDateTime(SDatetime), -1)));
2014年05月21日 00点05分
1
SDatetime='2014-05-21 08:50:02'
我想要把他变成'2014-05-21 08:50:01'
我这么写居然报错了
SDatetime:= FormatDateTime('yyyy-mm-dd hh:mm:ss',(incsecond(StrToDateTime(SDatetime), -1)));