0
0

More than 3 years have passed since last update.

date.todayで本日の日付を取得

Posted at

Dateクラスにtodayで日付を扱えるようになります。

ただそのままデータを確認するとSat, 19 Jun 2021になるが、

day = Date.todayとして変数に代入すると「2021-6-19」という値がGETできます。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0