Forum Discussion

Vanessa88's avatar
Vanessa88
New Member
3 years ago
Solved

Create calendar

Hi, I have a dataset that currently has Date column. I need to be able to extract and add Year, Month, MonthName, End of Month, Month-Year cloumn. Can someone let me know how I could do this? Thanks!

 

Cheers,
Vanessa

  • Hi :

    Use the Below code :

    Year : "Year",YEAR([Date])

    Month : "Month",MONTH([Date])

    Month Name : "Month Name",FORMAT([Date],"MMMM") OR "Month Name Short",FORMAT([Date],"MMM")

    End of Month : "End of Month",EOMONTH([Date],0)

    Month-Year : "Year Month Number",INT(FORMAT([Date],"YYYYMM")) or 

    "Year Month Name",FORMAT([Date],"YYYY-MMM")

    Appreciate your Kudos and mark as solution if it helps you

1 Reply

  • MahyarTF's avatar
    MahyarTF
    Memorable Member

    Hi :

    Use the Below code :

    Year : "Year",YEAR([Date])

    Month : "Month",MONTH([Date])

    Month Name : "Month Name",FORMAT([Date],"MMMM") OR "Month Name Short",FORMAT([Date],"MMM")

    End of Month : "End of Month",EOMONTH([Date],0)

    Month-Year : "Year Month Number",INT(FORMAT([Date],"YYYYMM")) or 

    "Year Month Name",FORMAT([Date],"YYYY-MMM")

    Appreciate your Kudos and mark as solution if it helps you