メインコンテンツまでスキップ

DateTime():date()

DateTime オブジェクトの日(月の日)を返します。

シグネチャ

date(): number

戻り値

  • 型: number
  • 月の日(1〜31)。

local date = DateTime(2024, 1, 15, 10, 30, 0)
local dayOfMonth = date:date()
toast("Day of the month: " .. dayOfMonth)