年,月,日的年龄计算算法? [英] Algorithm for Computing Age in Years, Months and Days?

查看:90
本文介绍了年,月,日的年龄计算算法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在生成一个Crystal Report.net,该晶体通过公式计算一个人的年龄.
当然会有生日和当前日期.
我对datediff函数很熟悉,但是我想进行计算,例如:
"18岁零2个月零15天."
应该包括the年.

我可以应用于Crystal Report公式的任何算法吗?
非常感谢您的帮助.

I am generating a crystal report.net that compute age of a person through formula.
of course, there is the birthdate and current date.
I am familiar with the datediff function but I want to compute is like:
"18 Years, 2 Months and fifteen days old."
it should include the leap year.

Any Algorithm that I can apply to crystal report formula?
Your help is very appreciated.

推荐答案

请将您的问题定向到Crystal Resports论坛(SAP最近购买了Business Objects,几年前又购买了Crystal Reports. ).

Please direct your question to the Crystal Resports forums (SAP recently bought Business Objects, which bought Crystal Reports a few years back).

http://support.microsoft.com/kb/100368/en-us


这篇关于年,月,日的年龄计算算法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆