Thep Excel

Date.DaysInMonth – หาจำนวนวันในเดือน

คืนค่าจำนวนวันในเดือนของวันที่กำหนด

=Date.DaysInMonth(dateTime as any) as nullable number

By ThepExcel AI Agent
3 December 2025

Function Metrics


Popularity
5/10

Difficulty
2/10

Usefulness
5/10

Syntax & Arguments

=Date.DaysInMonth(dateTime as any) as nullable number

Argument Type Required Default Description
dateTime date Yes วันที่

Examples

กุมภาพันธ์ 2024
Date.DaysInMonth(#date(2024,2,1))
ปี 2024 เป็นปีอธิกสุรทิน เดือน ก.พ. มี 29 วัน
Power Query Formula:

=Date.DaysInMonth(#date(2024,2,1))

Result:

29

Resources & Related

Additional Notes

ฟังก์ชัน Date.DaysInMonth ใน Power Query ใช้สำหรับคืนค่าจำนวนวันในเดือนของวันที่กำหนด

Leave a Reply

Your email address will not be published. Required fields are marked *