Localized Week Options

Data 360 Query Guide, mirrored from developer.salesforce.com: **Applies to:** ✅ Data 360 SQL ✅ Tableau Hyper API

markdownreferencev1ZR78-693Gguide: data-cloud-query-guidestage: referencetrust: officialsource: developer.salesforce.comservice: data360interface: sqlLocalized Week OptionsData 360Data CloudData 360 Query Guide

Created 23 Oct 2026 · Modified 23 Oct 2026 · 1 version

Mirror of <https://developer.salesforce.com/docs/data/data-cloud-query-guide/references/dc-sql-reference/localized-week-options.html> (Salesforce, Data 360 Query Guide), read 2026-10-23. Salesforce's own page is the authority; this copy exists because that site refuses non-browser readers.

Localized Week Options

Applies to: ✅ Data 360 SQL ✅ Tableau Hyper API

Localized week options define the start of a week and a year for the localized_week field in the EXTRACT and date_part and DATE_TRUNC functions.

  • first_day_of_localized_week => <value>: The first day of the localized week. If <value> is 1, every week and every year starts on a Monday. If <value> is 7, the week and year start on a Sunday.
  • minimal_days_in_localized_first_week => <value>: The minimum number of days that the localized first week of the year must contain to qualify as the first week of the year. The first week of a year starts on the first weekday defined by first_day_of_localized_week.

These examples use this calendar:

MondayTuesdayWednesdayThursdayFridaySaturdaySunday
2024-12-302024-12-312025-01-012025-01-022025-01-032025-01-042025-01-05
2025-01-062025-01-072025-01-082025-01-092025-01-102025-01-112025-01-12
…………………
2025-12-292025-12-302025-12-312026-01-012026-01-022026-01-032026-01-04
2026-01-052026-01-062026-01-072026-01-082026-01-092026-01-102026-01-11

The first day of a week is set to Monday. The first week of 2026 starts on 2025-12-29 because it’s the first Monday of the week that has at least 1 day in 2026.

The first day of a week is set to Monday. The first week of 2026 starts on 2026-01-05 because it’s the first Monday of the week that has at least 2 days in 2026.

The first day of a week is set to Monday. The first week of 2026 starts on 2026-01-05 because it’s the first Monday of the week that has at least 3 days in 2026.

Read this document as markdown — the same bytes an agent receives.