0

I have an expression in a report like so:

=Year(First(Fields!DepositDate.Value, "dsetCoverSheet")) Mod 100

This gives the last 2 digits of the year in DepositDate, e.g. if DepositDate is 7/1/2013, it gives 13.

What I need though, is fiscal year, which is from 7/1/2013 to 6/30/2014, so that 7/1/2013 gives a 14.

How do I do this?

4

1 回答 1

1

为什么不在应用表达式之前将日期添加 6 个月?

=Year(DateAdd(DateInterval.Month
    , 6
    , First(Fields!DepositDate.Value, "dsetCoverSheet")))
  Mod 100
于 2013-10-08T21:12:08.650 回答