> 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/timespan-object/timespan.getdays.md).

# Timespan.GetDays

## Giới Thiệu

Lấy ra giá trị ngày còn lại trong đối tượng TimeSpan

<figure><img src="/files/o5O6Ay5qqGimJv42JSKz" alt="Timespan.GetDays"><figcaption></figcaption></figure>

## Kết Quả

Ví dụ lấy ra tổng số ngày từ biến timespan

Cách tính&#x20;

`3 ngày = 3 ngày`

`2 giờ = 0 ngày`

`24 phút = 0 ngày`

`14 giây = 0 ngày`

Cộng tổng lại là 3 ngày

<figure><img src="/files/utmX8IS6r3Hnsb1kNByg" alt=""><figcaption></figcaption></figure>
