---
title: DateTime.FixedLocalNow – วันและเวลาปัจจุบันแบบคงที่
url: https://www.thepexcel.com/functions/power-query/datetime-functions/datetime-fixedlocalnow/
type: function-explainer
program: Power Query
syntax: DateTime.FixedLocalNow() as datetime
date: 2025-12-03
updated: 2025-12-17
scores:
  popularity: 3
  difficulty: 2
  usefulness: 3
---

# DateTime.FixedLocalNow – วันและเวลาปัจจุบันแบบคงที่

> วันและเวลาปัจจุบันแบบคงที่

## คำอธิบาย

คืนค่าวันและเวลาปัจจุบัน (Local) โดยค่าจะคงที่ตลอดการทำงานของ Query (ไม่เปลี่ยนไปเรื่อยๆ)

## Syntax

```excel
DateTime.FixedLocalNow() as datetime
```

## ตัวอย่าง

### 1. เวลาปัจจุบัน

```excel
DateTime.FixedLocalNow()
```

**ผลลัพธ์:** `30/11/2025 15:30:00`

ค่าเวลาจะไม่เปลี่ยนแม้ Query จะรันนาน

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

- [DateTime.LocalNow – วันและเวลาปัจจุบันของเครื่อง](https://www.thepexcel.com/functions/power-query/datetime-functions/datetime-localnow/)
- [DateTimeZone.FixedLocalNow](https://www.thepexcel.com/functions/power-query/datetimezone-functions/datetimezone-fixedlocalnow/)

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

- [PowerQuery.how](https://powerquery.how/datetime-fixedlocalnow/) _(guide)_

---

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