距下次生日的天數
查詢距下次生日的精確剩餘天數、生日星期以及屆時的年齡。
You will turn 31 on 星期六, 2026年8月15日
- 1
Next birthday date
2026年8月15日Birthday month and day placed in the current year; if already past, the year advances by one. - 2
Days until birthday
(next birthday − today) ÷ 86,400,000 = 33Both dates are at midnight local time so the division is exact.
此計算機如何運作?
下次生日為今年的出生月日,若已過則為明年。剩餘天數等於該日期減今天,向上取整。工具同時顯示星期、完整日期和屆時年齡,方便提前規劃。
公式
How this is calculated
輸入出生日期(B)和參考日期(T),後者預設為今天。計算器在參考年份中取出生月日構建下次生日:next = Date(T.year, B.month, B.day)。若該日期在今年已過(next < T),年份加一,使倒數始終指向即將到來的生日。
剩餘天數為下次生日與今天之差除以一天的毫秒數,向上取整:daysUntil = ceil((next − T) / 86,400,000)。屆時年齡為next.year − B.year,因為生日標誌著又完整地過了一年。進度條顯示您在一年中所處的位置,計算為(365 − daysUntil) / 365。
日期以本地時區解讀並正規化至午夜,部分天不影響計數。若生日為今天,結果為0天。閏日生日(2月29日)遵循平台日期處理:在非閏年中,JavaScript將2月29日移至3月1日,這是非閏年的常見慣例。
常見問題
倒數顯示0天,結果向您致賀,因為下次是當天本身。
為下次生日所在年份減去出生年份,即當天完成的完整年數。
可以。將參考(今天)日期更改為任意日期,計算器將從該日期向前計算到下次生日。
也稱為
TG we-Calculate Editorial Team. (2026). 距下次生日的天數 [Online calculator]. TG we-Calculate. https://we-calculate.com/zh-tw/calculator/days-until-birthday
TG we-Calculate Editorial Team. "距下次生日的天數." TG we-Calculate. 2026. https://we-calculate.com/zh-tw/calculator/days-until-birthday.
TG we-Calculate Editorial Team, "距下次生日的天數," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/zh-tw/calculator/days-until-birthday
@misc{wecalculate_days_until_birthday, title = {距下次生日的天數}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/zh-tw/calculator/days-until-birthday}}, year = {2026}, note = {TG we-Calculate} }
這個計算機對您有幫助嗎?
