cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Sebastian
Advocate II
Advocate II

Format date time field. Wrong name of month

Hallo Community,

 

I try to get the name of the month from a date-time field but it always shows the wrong Month.

 

Example:

 

customerdate                                shown month

15.07.2015 13:34:17                 Jan

 

I use the following function:

 

Name of Month= FORMAT(MONTH(Customer[Customerdate]);"MMM")

 

 

What's wrong? Any idea?

 

Thanks

Sebastian

1 ACCEPTED SOLUTION
Tsanka
Continued Contributor
Continued Contributor

I think you have to convert your date/time to date in order to correctly use the format function.

 

Edit: Missed the usage of month function - no need of it.

Month_Name = FORMAT([Date],"MMM")

 

 

 

View solution in original post

3 REPLIES 3
Tsanka
Continued Contributor
Continued Contributor

I think you have to convert your date/time to date in order to correctly use the format function.

 

Edit: Missed the usage of month function - no need of it.

Month_Name = FORMAT([Date],"MMM")

 

 

 

View solution in original post

Thank's a lot.

That was the mistake, didn't know why I'm using the MONTH function.

 

Sebastian
Advocate II
Advocate II

It also happens if i try the function on a normal date field. Is there a bug in the latest update?

Helpful resources

Announcements
MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

July 2021 Update 768x460.png

Check it out!

Click here to read more about the July 2021 Updates

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Top Solution Authors
Top Kudoed Authors