2006-03-27 日付文字列の解析 Ruby 標準添付の Time モジュールを使うのが一番楽らしい require 'date' t = Time.parse(hogehoge) p t.strftime('%Y-%m-%d.%T)