要计算两个日期之间的年,月和日 [英] Want to calaculate years,months and days between two dates
本文介绍了要计算两个日期之间的年,月和日的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好,
我已经创建了水晶报表,现在我想显示两个日期之间的年,月和日的数量..就像
如果date1 = 01/01/2010和date2 = 15/02/2011
那么结果必须是"1年1个月15天" ...
请帮帮我....我在等...
谢谢!!!!
Hello,
I have created crystal report and now i want to display the number of years,months and days between two dates....as like
If date1=01/01/2010 and date2=15/02/2011
then the result must be "1 Year,1 Month and 15 Days"...
please help me....i am waiting...
Thank you !!
推荐答案
从开始:http://www.crystalkeen.com/articles/crystalreports/datedifferences.htm [ ^ ]
但是您确定自己正确地指出了问题吗?
31/12/2010和1/1/2011有什么区别?
Start with http://www.crystalkeen.com/articles/crystalreports/datedifferences.htm[^]
But are you sure that you properly stated the problem ?
What is the difference between 31/12/2010 and 1/1/2011 ?
这对您有帮助吗?
http://www.codeguru.com/forum/showthread.php?t=421066 [ ^ ]
May this help you
http://www.codeguru.com/forum/showthread.php?t=421066[^]
这篇关于要计算两个日期之间的年,月和日的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文