获得员工开始工作的实际日期 [英] getting actual date when employee started to work

查看:83
本文介绍了获得员工开始工作的实际日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





员工开始在公司工作时获取约会的最简单方法是什么?现在我有数据员工的工作时间,格式为yy / mm / dd,例如33/03/14 - 这个工作33年,3个月和14天。从这开始我需要得到约会?如果有人有功能或存储过程?



谢谢

Hi,

what is the easiest way to get date when employee started to work in firm? Now I have data how long employee work, in form yy/mm/dd, example 33/03/14 - this one is working 33 years, 3 months and 14 days. From this I need to get date when he started? If someone have function or stored procedure?

Thanks

推荐答案

看看这个:使用Age:它与TimeSpan不同! [ ^ ] - 它并不完全符合您的要求,而是对此构造函数的简单修改:

Have a look at this: Working with Age: it's not the same as a TimeSpan![^] - it doesn't do exactly what you want, but a simple modification to this constructor:
public Age(DateTime startDate, int years, int months, int days)
    {
    _startDate = startDate;
    _endDate = _startDate.AddYears(years).AddMonths(months).AddDays(days);
    GetAge(_startDate, _endDate);
    }

或者用负值调用它应该这样做。

Or calling it with negative values should do it.


这篇关于获得员工开始工作的实际日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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