2007-03-22 Rubyで日付整形 ruby cgi プログラミング言語 Ruby リファレンスマニュアル t=Time.now p t.strftime( '%Y%m%d' ) # => 20070322