function(const transDate:TDatetime);Tdatetime;
var
transDateYearStr,transDateMonStr,transDateDayStr:String;
begin
transDateYearStr:=formatdatetime('yyyy',transDate);
transDateMonStr:=formatdatetime('mm',transDate);
transDateDayStr:=formatdatetime('dd',transDate);
if strtoint(transDateMonStr)=12 then
begin
transDateMonStr:='1';
transDateYearStr:=inttostr(strtoint(transDateYearStr+1));
end
else
begin
transDateMonStr:=inttostr(strtoint(transDateMonStr+1));
end;
result:=strtodatetime(transDateYearStr+'-'+transDateMonStr+'-'+transDateDayStr);
end;