Date.DayOfWeekName Function in Power Query M

Sumit Bansal
Written by

Sumit Bansal is the founder of TrumpExcel.com and a 13-time Microsoft Excel MVP. He started this site in 2013 to share his passion for Excel through easy tutorials, tips, and training videos, helping you master Excel, boost productivity, and maybe even enjoy spreadsheets!

Last updated

The Date.DayOfWeekName function gives you the name of the weekday a date falls on, like Monday or Friday. It’s handy when you want a report or a label to show the actual day instead of just a date.

The catch is that the name comes out in your computer’s language unless you say otherwise. In this article, I’ll show you how to control that, and how to use the day name in real tables.

Follow along with the example file

Date.DayOfWeekName Function Examples.xlsx

Download

Date.DayOfWeekName Function Syntax

Date.DayOfWeekName(date as any, optional culture as nullable text) as nullable text
  • date – the date you want the day name for. It can be a date, a datetime, or a datetimezone value, and text that looks like a date works too (with a catch you’ll see in Example 7).
  • culture (optional) – a language and region code, such as “en-US” for English (United States) or “fr-FR” for French (France). It decides which language the day name is in. If you leave it out, Power Query uses your computer’s culture setting.

What it returns – the day name as text, such as “Friday”.

If the date is null, you get null back instead of an error. And if you want the day as a number (0 to 6) instead of a name, use the Date.DayOfWeek function.

When to Use the Date.DayOfWeekName Function

Use this function when you need to:

  • Get the day name of a date
  • Show day names in another language, or in each row’s own language
  • Add a Day Name column to a table of dates
  • Show short day names like Mon and Tue
  • Get the day name from a date and time value
  • Get the day name from dates stored as text
  • Look up a value (like a daily special) based on the day of the week
  • Build a list of all seven day names

Example 1: Get the Day Name of a Date

Let’s start with the simplest use of the function.

Suppose you have the date April 17, 2026, and you want to know which day of the week it is.

Create a new blank query (in Excel, go to Data > Get Data > From Other Sources > Blank Query) and type this formula in the formula bar:

= Date.DayOfWeekName(#date(2026,4,17))

Result: Friday

Date.DayOfWeekName(#date(2026,4,17)) returns Friday

Here, #date(2026,4,17) creates the date April 17, 2026, and Date.DayOfWeekName returns its day name, which is Friday.

I didn’t give the function a culture, so it used my computer’s setting, which is English (United States). On a computer set to French, the same formula returns “vendredi” instead.

Example 2: Get the Day Name in Another Language

The second argument lets you pick the language of the day name, no matter what your computer is set to.

Suppose you want the day name of the same date, April 17, 2026, in French.

Create a new blank query (as in Example 1) and use this formula:

= Date.DayOfWeekName(#date(2026,4,17),"fr-FR")

Result: vendredi

With the fr-FR culture, the same date returns vendredi

Here, “fr-FR” is the culture code for French (France), so the function returns “vendredi”, the French word for Friday. Note that it starts with a lowercase letter, because that’s how French writes day names.

You can use any culture code in the same way. For example, “de-DE” gives “Freitag” (German) and “es-ES” gives “viernes” (Spanish).

Be careful with the spelling of the code, though. If Power Query doesn’t recognize it (say you type “French”), you don’t get an error.

You just get the day name in your computer’s language, so a typo can easily go unnoticed.

Example 3: Add a Day Name Column to a Table

In real data, you’ll usually want the day name for a whole column of dates.

Below is a Workshops table with the date of each Excel workshop and its host, and I want the day name of each workshop in a new Day Name column.

Workshops table with Workshop, Host and Workshop Date

To follow along, select any cell in the Workshops table and go to Data > From Table/Range. Power Query adds a Changed Type step, and Excel dates usually come in there with the Date/Time type.

These dates have no time, so click the type icon in the Workshop Date header, pick Date, and choose Replace current. Date.DayOfWeekName works on Date/Time values too, so this step just keeps the column clean.

Add a new step (by clicking on the fx icon next to the formula bar) and use this formula:

= Table.AddColumn(#"Changed Type","Day Name",each Date.DayOfWeekName([Workshop Date]),type text)

Result: A new Day Name column shows Monday, Thursday, Saturday, Wednesday, Friday, and Tuesday.

New Day Name column with the day name of each workshop

Here, the Table.AddColumn function adds the Day Name column, and the each keyword runs Date.DayOfWeekName on every row. [Workshop Date] picks the date from the same row, and type text makes the new column a Text column.

So Audrey’s Pivot Tables workshop on 4/6/2026 shows Monday, and Carl’s Power Query Intro on 4/11/2026 shows Saturday.

Since there’s no culture in this formula, the day names come out in your computer’s language.

Example 4: Show Each Row’s Day Name in Its Own Language

The culture doesn’t have to be typed into the formula. It can come from a column, so every row can get its day name in a different language.

Below is an Offices table with the launch date of each new office and its culture code, and I want the launch day in each office’s own language in a new Local Day column.

Offices table with Office, Culture and Launch Date

As in Example 3, load the table with Data > From Table/Range, and make sure the Changed Type step sets the Launch Date column to the Date type.

Add a new step (by clicking on the fx icon next to the formula bar) and use this formula:

= Table.AddColumn(#"Changed Type","Local Day",each Date.DayOfWeekName([Launch Date],[Culture]),type text)

Result: A new Local Day column shows Monday, mercredi, Donnerstag, viernes, lunedì, and dinsdag.

New Local Day column with each launch day in the office's own language

Here, [Culture] passes each row’s culture code as the second argument. So the Paris row (fr-FR) gets “mercredi”, the Berlin row (de-DE) gets “Donnerstag”, and the Rome row (it-IT) gets “lunedì”.

As in Example 2, a wrong or blank culture code doesn’t give an error. That row just shows the day name in your computer’s language, so it’s worth checking the codes in the Culture column.

Example 5: Show Short Day Names (Mon, Tue, Wed)

Full day names can take up a lot of space in a report. A lot of the time, the three-letter version is all you need.

Below is a Shifts table with the date and hours of each employee’s shift, and I want the short day name of each shift in a new Day column.

Shifts table with Employee, Shift Date and Hours

As in Example 3, load the table with Data > From Table/Range. Make sure the Changed Type step sets the Shift Date column to the Date type and the Hours column to Whole Number.

Add a new step (by clicking on the fx icon next to the formula bar) and use this formula:

= Table.AddColumn(#"Changed Type","Day",each Text.Start(Date.DayOfWeekName([Shift Date]),3),type text)

Result: A new Day column shows Mon, Tue, Wed, Thu, Fri, Sat, and Sun.

New Day column with three-letter day names from Mon to Sun

Here, Date.DayOfWeekName gives the full day name, and the Text.Start function keeps only its first 3 characters. So “Monday” becomes “Mon” and “Sunday” becomes “Sun”.

Cutting to three letters works well for English day names. But in other languages, the short day name isn’t always the first three letters, so German shortens Montag to “Mo”, not “Mon”.

Pro Tip: If your day names aren’t in English, use Date.ToText([Shift Date],[Format="ddd"]) with the Date.ToText function instead. It gives the proper short day name for your culture, like “Mo” and “Di” in German.

Follow along with the example file

Date.DayOfWeekName Function Examples.xlsx

Download

Example 6: Get the Day Name From a Date and Time

Date.DayOfWeekName doesn’t need a pure date. It also works with values that have a time, like the ones you get from logs and check-in systems.

Below is a CheckIns table with the date and time each gym member checked in, and I want the day name of each check-in in a new Day Name column.

CheckIns table with Member and Checked In date and time

Load the table with Data > From Table/Range. This time, keep the Checked In column as Date/Time in the Changed Type step, since it has times.

Add a new step (by clicking on the fx icon next to the formula bar) and use this formula:

= Table.AddColumn(#"Changed Type","Day Name",each Date.DayOfWeekName([Checked In]),type text)

Result: A new Day Name column shows Monday, Tuesday, Thursday, Friday, Saturday, and Sunday.

New Day Name column based on the date part of each check-in

Here, the function looks only at the date part of each value and ignores the time. So you don’t need to strip the time out first.

That’s why Ellen’s late check-in at 11:50 PM on 6/5/2026 still shows Friday, and Angela’s check-in at 12:10 AM on 6/7/2026 shows Sunday.

Example 7: Get the Day Name From Dates Stored as Text

Dates don’t always arrive as real dates. When you import data from a file or another system, they often come in as text, and in a format that isn’t the one your computer uses.

Below is a Shipments table where the ship dates are text in the UK day/month/year format, and I want the day each order shipped in a new Day Name column.

Shipments table with ship dates stored as UK day/month/year text

Date.DayOfWeekName does accept text, but it reads the text using your computer’s date format. On a US computer, “03/04/2026” is read as March 4 instead of April 3, so you get Wednesday instead of Friday, with no error at all.

And a date like “17/04/2026” can’t be read as a US date (there’s no month 17), so the function gives the error “We couldn’t parse the input provided as a DateTimeZone value.”

The fix is to turn the text into a date yourself, and tell Power Query which format the text is in.

Load the table with Data > From Table/Range. If Power Query adds a Changed Type step, delete it so the next step starts from the Source step.

Add a new step (by clicking on the fx icon next to the formula bar) and use this formula:

= Table.AddColumn(Source,"Day Name",each Date.DayOfWeekName(Date.FromText([Ship Date],[Culture="en-GB"])),type text)

Result: A new Day Name column shows Friday, Friday, Tuesday, Wednesday, Monday, and Saturday.

New Day Name column after reading the text dates as UK dates

Here, the Date.FromText function turns each text value into a real date, and [Culture="en-GB"] tells it to read the text as a UK date. Then Date.DayOfWeekName gets the day name from that date.

So “03/04/2026” is now read as April 3, 2026 and correctly shows Friday, and “17/04/2026” shows Friday too, instead of an error. Since the culture is in the formula, you get the same result on any computer.

If you need real dates for other steps too, change the type of the Ship Date column with its locale instead. Right-click the header, go to Change Type > Using Locale, and pick Date and English (United Kingdom).

After that, you can use Date.DayOfWeekName directly on the column.

Example 8: Look Up a Value by Day Name

A day name is also useful as a key, to pick up a value that depends on the day of the week.

Below is an Orders table with the event date of each catering order, and I want the special for that day in a new Special column.

Orders table with Order, Customer and Event Date

The specials are in a separate Specials table, with one special for each day of the week.

Specials table with one special for each day of the week

As in Example 3, load the Orders table with Data > From Table/Range, and make sure the Changed Type step sets the Event Date column to the Date type.

First, bring the Specials table into this query. Add a new step (by clicking on the fx icon next to the formula bar) and use this formula:

= Excel.CurrentWorkbook(){[Name="Specials"]}[Content]

Power Query names a step added this way Custom1, so right-click it in the Applied Steps pane, choose Rename, and call it Specials. The next formula refers to it by that name.

Now add another new step and use this formula:

= Table.AddColumn(#"Changed Type","Special",each Specials{[Day=Date.DayOfWeekName([Event Date],"en-US")]}[Special],type text)

Result: A new Special column shows Pasta Bake, Curry Bowl, Fish and Chips, Pizza Party, Roast Dinner, Taco Bar, and Fish and Chips.

New Special column picked up from the Specials table by day name

Here, Date.DayOfWeekName gets the day name of each event date. Then Specials{[Day=...]} finds the row in the Specials table where the Day column has that name, and [Special] returns the special from that row.

So Donald’s order on Monday, 6/8/2026 gets Pasta Bake, and Benjamin’s order on Friday, 6/12/2026 gets Fish and Chips.

The “en-US” in the formula matters here. The Specials table has English day names, so the day names from the formula have to be in English too, or nothing matches.

Important: The day names have to match exactly. If a day is missing or misspelled in the Specials table, or you leave out “en-US” on a computer set to another language, that row shows the error “The key didn’t match any rows in the table.”

If you’d rather get a blank than an error, use a merge instead. For that, load the Specials table as its own query, and add a Day Name column to the orders with Date.DayOfWeekName.

Then merge the two queries on Day Name and Day with a Left Outer join (this is what the Table.NestedJoin function does). After you expand the Special column, a day with no match shows null.

Example 9: Get a List of All Seven Day Names

This last example builds the names of all seven days, which is handy for column headers or a calendar table.

Suppose you want a list of the day names from Monday to Sunday, without typing them in.

Create a new blank query (as in Example 1) and use this formula:

= List.Transform({0..6},each Date.DayOfWeekName(Date.AddDays(#date(2026,4,13),_)))

Result: A list with Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, and Sunday.

A list of all seven day names from Monday to Sunday

Here, {0..6} is a list of the numbers 0 to 6, and the List.Transform function runs the each part once for every number in it.

For each number, the Date.AddDays function adds that many days to April 13, 2026, and Date.DayOfWeekName returns the day name of the new date.

I picked April 13, 2026 because it’s a Monday, so the list starts on Monday. Use any Sunday as the start date if you want the list to start on Sunday instead.

Since the names follow your computer’s language, you can add a culture to get the list in another language. For example, with “fr-FR” as the second argument of Date.DayOfWeekName, you get lundi to dimanche.

Other Excel Articles You May Also Like:

All Power Query Functions

Sumit Bansal

Sumit Bansal

13x Microsoft Excel MVP

Hey! I'm Sumit Bansal, founder of trumpexcel.com and a Microsoft Excel MVP. I started this site in 2013 because I genuinely love Microsoft Excel (yes, really!) and wanted to share that passion through easy Excel tutorials, tips, and Excel training videos. My goal is straightforward: help you master Excel skills so you can work smarter, boost productivity, and maybe even enjoy spreadsheets along the way!

Get the FREE 51 Excel Tips Ebook

Enter your details and the free PDF is on its way to your inbox.

Hmm, that didn't go through. Please check your email and try again.

No spam. You'll also get my weekly Excel newsletter. Unsubscribe anytime.

Check your inbox!

The ebook is on its way to your email. It usually lands within a couple of minutes.