Extract day of week names or numbers (Monday, Mon, 1–7) from date columns
Derive day-of-week names or numeric values from date columns for cohort analytics.
Interactive Sample Data
| sale_id | sale_date | revenue |
|---|---|---|
| 1 | 2026-10-05 | 1200 |
| 2 | 2026-10-06 | 850 |
| 3 | 2026-10-10 | 3100 |
How this tool works
Things that usually go wrong
- Dates in ambiguous formats (01/02/2024 — is that Jan 2 or Feb 1?) should be standardised first.
- The week start day (Sunday or Monday) affects the numeric output.
Edge cases we tested
Correctly evaluated as Tuesday without date math errors.
Evaluates the calendar day without tripping on time strings.
Flagged cleanly as invalid date rather than returning erroneous weekdays.
Frequently Asked Questions
What is the numeric mapping?
0 = Sunday, 1 = Monday, …, 6 = Saturday. If you prefer Monday = 1 (ISO), select 'ISO weekday'.
Can I filter rows by weekday?
After adding the weekday column, use Filter CSV Rows to keep only, say, rows where weekday = 'Monday'.
Can I use the weekday column to filter for only weekdays (Monday–Friday)?
Yes — after adding the weekday column, use Filter CSV Rows with condition: weekday != 'Saturday' AND weekday != 'Sunday'.
Is the first day of the week Sunday or Monday?
The numeric output follows ISO 8601 (Monday = 1 … Sunday = 7) when 'ISO mode' is selected, or US convention (Sunday = 0 … Saturday = 6) in default mode.
Related tools
Column to Comma-Separated List
Extract a CSV column and convert it to a comma-separated list for SQL IN clauses or code arrays.
Open Tool →Comma-Separated List to Column
Convert a comma-separated, line-separated, or SQL IN list into a single-column CSV.
Open Tool →Lines to CSV
Convert plain-text newline-delimited records into structured CSV tables.
Open Tool →