> 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.md).

# 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>" %}
