Ruby 3.4 リファレンスマニュアル

instance method Date#day

mday -> Integer[permalink][rdoc][edit]
day -> Integer

月の日を返します (1-31)。