对日期类型的操作问题??????????????????????????????????????
xinfs 2003-12-13 11:15:28 1.如何实现DELPHI的 INCDay函数的功能
例如IncDay(strtodatetime('2003-4-3',3)
日期加3天,返回"2003-04-06".
要求在VC中返回Coledatetime类型
-----------------------------
2. 如何实现DELPHI的 IncMonth函数的功能
例如 IncMonth(strtodatetime('2003-12-3',2)
日期加2个月,返回"2004-02-03" .
要求在VC中返回Coledatetime类型
-----------------------------
3.如何实现DELPHI的 monthsbetween函数的功能
monthsbetween( strtodate('2003-4-1'),strtodate('2003-6-1'))
返回2个月
请给出详细的代码,急