ssrs dynamically get Month name in the format MMMYY - Very urgent

  • Hi all,

    Currently use below code get Month number

    how can i get Month name in the format MMMYY usinf similar function

    Any help......

    Public Function GetColumnHeading(ByVal x As Integer)

    Dim WeeksArr As New System.Collections.ArrayList()

    Dim i As Long

    Dim CurrentWeek As Long

    CurrentWeek = DatePart(DateInterval.MONTH, System.DateTime.Now)

    For i = 1 To 12

    WeeksArr.Add(-1 + (i + CurrentWeek - 1) Mod 12)

    Next

    Return WeeksArr(x)

    End Function

  • Could use an expression

    =FORMAT(Today(),"dd/MMMM/yyyy")

    Can experiment with the string format, just remember that capital M is month and lower m is minutes.

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply