---
title: DateTimeZone.From – แปลงค่าเป็น DateTimeZone
url: https://www.thepexcel.com/functions/power-query/datetimezone-functions/datetimezone-from/
type: function-explainer
program: Power Query
syntax: "DateTimeZone.From(value as any, optional culture as nullable text) as nullable datetimezone"
date: 2025-12-03
updated: 2025-12-17
scores:
  popularity: 4
  difficulty: 3
  usefulness: 4
---

# DateTimeZone.From – แปลงค่าเป็น DateTimeZone

> แปลงค่าเป็น DateTimeZone

## คำอธิบาย

แปลงค่าเป็น DateTimeZone (วันที่, เวลา และ Timezone)

## Syntax

```excel
DateTimeZone.From(value as any, optional culture as nullable text) as nullable datetimezone
```

## Arguments

| Name | Required | Type | Default | Description |
| --- | --- | --- | --- | --- |
| value | Yes | any |  | ค่าที่ต้องการแปลง (Text หรือ DateTime) |
| culture | No | text |  | รหัสภาษา |

## ตัวอย่าง

### 1. แปลงจาก Text

```excel
DateTimeZone.From("2025-01-01T12:00:00+07:00")
```

**ผลลัพธ์:** `2025-01-01T12:00:00+07:00`

แปลงข้อความ ISO 8601 เป็น DateTimeZone

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

- [DateTime.From – แปลงค่าเป็น DateTime](https://www.thepexcel.com/functions/power-query/datetime-functions/datetime-from/)
- [DateTimeZone.ToText – แปลง DateTimeZone เป็นข้อความ](https://www.thepexcel.com/functions/power-query/datetimezone-functions/datetimezone-totext/)

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

- [PowerQuery.how](https://powerquery.how/datetimezone-from/) _(guide)_

---

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