How can you convert a text column with SEPTIEMBER as a spanish month name
to a date or even english name?
- specifically choose
spanish esas yourculture/localein your "transform column types" step - If that's not automatic, pick the
format stringfor month names
[
Date = #date(2024, 9, 1),
SpanishName = Date.ToText( Date, [ Format = "MMMM", Culture = "es"] ),
AndBack = DateTime.FromText( SpanishName, [ Format="MMMM", Culture="es"]),
IsRoundTrip = DateTime.Date( AndBack ) = Date,
EnglishName = Date.ToText( DateTime.Date(AndBack), [ Format = "MMMM", Culture = "en"] )
]| Name | Value |
|---|---|
| Date | 2024-09-01 |
| SpanishName | septiembre |
| AndBack | 2024-09-01 12:00:00 AM |
| IsRoundTrip | True |
| EnglishName | September |
You want MMMM for the full month name
- reference for all of the format strings: https://learn.microsoft.com/en-us/powerquery-m/custom-date-and-time-format-strings