2019-05-10から1日間の記事一覧
こちらの記事の1問目をやってみた。 blog.jnito.com require 'date' #今日 d = Date.today #今月と今年 m_y = d.strftime("%B %Y") #月初の曜日 fd = Date.parse(Date.today.strftime('%Y-%m-01')) fd = fd.strftime("%a") #月末の日付 ld = Date.new(Time.n…
こちらの記事の1問目をやってみた。 blog.jnito.com require 'date' #今日 d = Date.today #今月と今年 m_y = d.strftime("%B %Y") #月初の曜日 fd = Date.parse(Date.today.strftime('%Y-%m-01')) fd = fd.strftime("%a") #月末の日付 ld = Date.new(Time.n…