Delphi日期转字符串的函数答:year, month, day, hour, minute, second, misecond: integer;begin DecodeDateTime(now, year, month, day, hour, minute, second, milsecond);end;注意在uses里加上DateUtils 不好意思看错题目了~~那就用FormatDateTime就可以了~~var str: string;begin str := FormatDateTime('yyyy-mm-dd hh...
delphi 修改字符串答:1.var S: string;begin S := '20080101';insert('-', S, 7);insert('-', S, 5);showmessage(S);end;2.var D, S: string;begin D := '20080101';S := Copy(D, 1,4) + '-' + Copy(D, 5, 2) + '-' + Copy(D, 7, 2);ShowMessage(S);end;...