# DateTime

## Giới Thiệu

Trong Automatic Mouse and Keyboard có các function hỗ trợ xử lý thời gian bao gồm

| Function                                                                    | Mô Tả                                                                                                                                                                        |
| --------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [GetCurrentDateTime](/function-ho-tro/datetime/getcurrentdatetime.md)       | <p>Lấy thời gian hiện tại.<br>Trả về biến kiểu Date có định dạng: <em><mark style="color:yellow;">yyyy-m-dd HH:mm:ss</mark></em></p>                                         |
| [DateTimeFromString](/function-ho-tro/datetime/datetimefromstring.md)       | <p>Chuyển 1 chuỗi ký tự hiển thị thời gian thành biến kiểu Date để có thể xử lý ngày tháng.<br>Ví dụ chuỗi: <em><mark style="color:blue;">2023-4-30 08:07:22</mark></em></p> |
| [DayOfWeek](/function-ho-tro/datetime/dayofweek.md)                         | Trả về thứ tự ngày trong tuần, bắt đầu từ Chủ Nhật.                                                                                                                          |
| [Tomorrow](/function-ho-tro/datetime/tomorrow.md)                           | Lấy thời gian ngày kế tiếp                                                                                                                                                   |
| [Yesterday](/function-ho-tro/datetime/yesterday.md)                         | Lấy thời gian ngày trước đó                                                                                                                                                  |
| [DateTimeToTimeStamp](/function-ho-tro/datetime/datetimetotimestamp.md)     | Chuyển đổi kiểu DateTime sang TimeStamp                                                                                                                                      |
| [TimeStampToDateTime](/function-ho-tro/datetime/timestamptodatetime.md)     | Chuyển đổi kiểu TimeStamp sang kiểu DateTime                                                                                                                                 |
| [WaitTime](/function-ho-tro/datetime/waittime.md)                           | <p>Chờ cho đến khi đến 1 thời gian cụ thể, ví dụ 08:23:15.<br>Nếu đã quá thời gian đó thì function sẽ trả về <em><mark style="color:blue;">false</mark></em></p>             |
| [GetFileLastModifyTime](/function-ho-tro/datetime/getfilelastmodifytime.md) | Lấy thời gian chỉnh sửa lần cuối cùng của 1 tệp tin                                                                                                                          |
| [GetFileCreationTime](/function-ho-tro/datetime/getfilecreationtime.md)     | Lấy thời gian tạo của 1 tệp tin                                                                                                                                              |
| [SetFileLastModifyTime](/function-ho-tro/datetime/setfilelastmodifytime.md) | Thay đổi thời gian chỉnh sửa lần cuối cùng của 1 tệp tin                                                                                                                     |
| [SetFileCreationTime](/function-ho-tro/datetime/setfilecreationtime.md)     | Thay đổi thời gian tạo của 1 tệp tin                                                                                                                                         |
| [DateTime Object](/function-ho-tro/datetime/datetime-object.md)             | Kiểu DateTime                                                                                                                                                                |
| [TimeSpanObject](/function-ho-tro/datetime/timespan-object.md)              | Kiểu TimeSpan                                                                                                                                                                |

## Video Hướng Dẫn

{% embed url="<https://youtu.be/i3YNOsalKDk>" %}


---

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