Date.IsInCurrentYear ตรวจสอบว่าวันที่นั้นตรงกับปีปัจจุบันหรือไม่
=date_isincurrentyear(value as any) as any
=date_isincurrentyear(value as any) as any
| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
| value | any | Yes | ค่าที่ต้องการประมวลผล |
date_isincurrentyear(data)=date_isincurrentyear(data)
true/false
date_isincurrentyear(#date(2025,12,13))=date_isincurrentyear(#date(2025,12,13))
true
let result = date_isincurrentyear(tomorrow) in resultlet result = date_isincurrentyear(tomorrow) in result
ผลลัพธ์สุดท้าย
Date.IsInCurrentYear ตรวจสอบว่าวันที่นั้นตรงกับปีปัจจุบันหรือไม่
ข้อมูลต้องเป็นค่าวันที่ (date) หรือวันที่และเวลา (datetime)
Date.IsInCurrentYear – ตรวจสอบปีปัจจุบัน