|
|
导航: |
论坛 -> 论坛精华贴
斑竹:liumazi,iamdream |
|
作者: |
|
2005/5/12 17:00:41 |
标题: |
|
加入我的收藏 |
楼主: |
如第一个日期是2005-01-01 如加上保质期一年的话 自动变成2006-01-01 如加上保质期二年的话 自动变成2007-01-01请教各位大侠如何编写, 谢谢大家!
----------------------------------------------
- |
作者: |
|
2005/5/12 17:12:48 |
1楼: |
试试看,麻烦了点: datetostr( ),copystr( ),strtoint(),inttostr(),strtodate() 最后下面的语句可以完成加一年的操作吧 strtodate(inttostr(strtoint(copy(datetostr(now),1,4))+1)+copy(datetostr(now),5,10))
----------------------------------------------
-
|
作者: |
|
2005/5/12 17:23:35 |
2楼: |
uses DateUtils,然后用IncYear,查一下帮助。
----------------------------------------------
-广袤璀璨的银河,永无止境的梦想(梦无止境游银河) 博客挂了……
|
作者: |
yufee (yufee) |
★☆☆☆☆ |
-
|
盒子活跃会员 |
|
2005/5/12 17:40:30 |
3楼: |
incmonth(Olddate,12)
----------------------------------------------
-
|
|