> For the complete documentation index, see [llms.txt](https://docs.taiamk.pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.taiamk.pro/function-ho-tro/datetime/datetime-object.md).

# 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  |
