---
title: Date.StartOfWeek – หาวันต้นสัปดาห์
url: https://www.thepexcel.com/functions/power-query/date-functions/date-startofweek/
type: function-explainer
program: Power Query
syntax: "Date.StartOfWeek(dateTime as any, optional firstDayOfWeek as nullable number) as any"
date: 2025-12-03
updated: 2025-12-17
scores:
  popularity: 5
  difficulty: 2
  usefulness: 5
---

# Date.StartOfWeek – หาวันต้นสัปดาห์

> หาวันต้นสัปดาห์

## คำอธิบาย

คืนค่าวันแรกของสัปดาห์

## Syntax

```excel
Date.StartOfWeek(dateTime as any, optional firstDayOfWeek as nullable number) as any
```

## Arguments

| Name | Required | Type | Default | Description |
| --- | --- | --- | --- | --- |
| dateTime | Yes | date |  | วันที่ |
| firstDayOfWeek | No | number |  | วันเริ่มสัปดาห์ (เช่น Day.Monday) |

## ตัวอย่าง

### 1. วันจันทร์ที่ผ่านมา

```excel
Date.StartOfWeek(DateTime.LocalNow(), Day.Monday)
```

**ผลลัพธ์:** `Date`

หาวันจันทร์ของสัปดาห์ปัจจุบัน

## ฟังก์ชันที่เกี่ยวข้อง

- [Date.EndOfWeek – หาวันสิ้นสัปดาห์](https://www.thepexcel.com/functions/power-query/date-functions/date-endofweek/)
- [Date.DayOfWeek – คืนค่าตัวเลขลำดับวันในสัปดาห์](https://www.thepexcel.com/functions/power-query/date-functions/date-dayofweek/)

## แหล่งข้อมูลเพิ่มเติม

- [PowerQuery.how](https://powerquery.how/date-startofweek/) _(guide)_

---

_Source: [https://www.thepexcel.com/functions/power-query/date-functions/date-startofweek/](https://www.thepexcel.com/functions/power-query/date-functions/date-startofweek/)_
