---
title: Date.IsInNextDay – ตรวจสอบวันถัดไป
url: https://www.thepexcel.com/functions/power-query/date-functions/date-isinnextday/
type: function-explainer
program: Power Query
syntax: date_isinnextday(value as any) as any
date: 2025-12-12
updated: 2025-12-17
scores:
  popularity: 3
  difficulty: 2
  usefulness: 3
---

# Date.IsInNextDay – ตรวจสอบวันถัดไป

> ตรวจสอบวันถัดไป

## คำอธิบาย

Date.IsInNextDay ตรวจสอบว่าวันที่นั้นตรงกับวันถัดไปหรือไม่

## Syntax

```excel
date_isinnextday(value as any) as any
```

## Arguments

| Name | Required | Type | Default | Description |
| --- | --- | --- | --- | --- |
| value | Yes | any |  | ค่าที่ต้องการประมวลผล |

## ตัวอย่าง

### 1. ตัวอย่างที่ 1

```excel
date_isinnextday(data)
```

**ผลลัพธ์:** `true/false`

การใช้งานพื้นฐาน

### 2. ตัวอย่างที่ 2

```excel
date_isinnextday(#date(2025,12,13))
```

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

ใช้กับวันที่

### 3. ตัวอย่างที่ 3

```excel
let result = date_isinnextday(tomorrow) in result
```

**ผลลัพธ์:** `ผลลัพธ์สุดท้าย`

ใช้ในสูตร let...in

## หมายเหตุเพิ่มเติม

⚠️ ฟังก์ชันนี้ใช้สำหรับการตรวจสอบวันที่

## คำถามที่พบบ่อย

**Q: ฟังก์ชันนี้ใช้สำหรับอะไร**

Date.IsInNextDay ตรวจสอบว่าวันที่นั้นตรงกับวันถัดไปหรือไม่

**Q: ข้อมูลส่งเข้าจำเป็นต้องมีรูปแบบไหน**

ข้อมูลต้องเป็นค่าวันที่ (date) หรือวันที่และเวลา (datetime)

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

- [Microsoft Learn: Power Query M](https://learn.microsoft.com/en-us/powerquery-m/date-isinnextday) _(documentation)_

---

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