Week of year bug in Ax3

今天在Axapta中发现一个老函数错误,记录下来。

如果使用系统函数wrofyr,在2010年的话,周数就不正确,老是少一,比如说3月1日,Outlook中显示是第十周,而用这个函数是第九周。需要使用系统另外一个函数WeekofYear,就可以得到正确结果。深层次原因不清楚,可能是每年第一周的计算不一样吧。

原文地址:https://www.cnblogs.com/acloudy/p/1675807.html