# DateTime Object

## Khởi Tạo

<figure><img src="/files/7wBQ3KyrH36JIIQb10WX" alt="DateTime Object"><figcaption><p>Cấu Hình</p></figcaption></figure>

| Tham Số | Kiểu      | Mô Tả          |
| ------- | --------- | -------------- |
| Year    | Số nguyên | Năm xác định   |
| Month   | Số nguyên | Tháng xác định |
| Day     | Số nguyên | Ngày xác định  |
| Hour    | Số nguyên | Giờ xác định   |
| Minute  | Số nguyên | Phút xác định  |
| Second  | Số nguyên | Giây xác định  |

## Các Thuộc Tính Của DateTime Object

| Thuộc Tính                                                                            | Mô Tả                      |
| ------------------------------------------------------------------------------------- | -------------------------- |
| [DateTime.GetYear](/function-ho-tro/datetime/datetime-object/datetime.getyear.md)     | Lấy năm từ kiểu DateTime   |
| [DateTime.GetMonth](/function-ho-tro/datetime/datetime-object/datetime.getmonth.md)   | Lấy tháng từ kiểu DateTime |
| [DateTime.GetDay](/function-ho-tro/datetime/datetime-object/datetime.getday.md)       | Lấy ngày từ kiểu DateTime  |
| [DateTime.GetHour](/function-ho-tro/datetime/datetime-object/datetime.gethour.md)     | Lấy giờ từ kiểu DateTime   |
| [DateTime.GetMinute](/function-ho-tro/datetime/datetime-object/datetime.getminute.md) | Lấy phút từ kiểu DateTime  |
| [DateTime.GetSecond](/function-ho-tro/datetime/datetime-object/datetime.getsecond.md) | Lấy giấy từ kiểu DateTime  |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.taiamk.pro/function-ho-tro/datetime/datetime-object.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
