一般都可以在DATASET.FieldByName('日期时间').OnGetText中写入代码:DisplayText:=True;
if MonthOf(Field.Value) >9 then
Text:=IntToStr(YearOf(Field.Value))+'年'+IntToStr(MonthOf(Field.Value))+'月份'
else
Text:=IntToStr(YearOf(Field.Value))+'年 0'+IntToStr(MonthOf(Field.Value))+'月份'
if MonthOf(Field.Value) >9 then
Text:=IntToStr(YearOf(Field.Value))+'年'+IntToStr(MonthOf(Field.Value))+'月份'
else
Text:=IntToStr(YearOf(Field.Value))+'年 0'+IntToStr(MonthOf(Field.Value))+'月份'
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货