Forum Discussion
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
- MahyarTFMemorable 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