今日の日付を文字列として取得したい場合
Date.today.strftime("%Y-%m-%d")
%Yで4桁西暦、%mで0埋め2桁月、%dで0埋め2桁日
Go to list of users who liked
Share on X(Twitter)
Share on Facebook
More than 5 years have passed since last update.
今日の日付を文字列として取得したい場合
Date.today.strftime("%Y-%m-%d")
%Yで4桁西暦、%mで0埋め2桁月、%dで0埋め2桁日
Register as a new user and use Qiita more conveniently
Go to list of users who liked