javaだと、SimpleDateFormat使ってやるやつ。
require 'date'
p DateTime.strptime("2013年9月21日", "%Y年%m月%d日")
=> #<DateTime: 2013-09-21T00:00:00+00:00 ((2456557j,0s,0n),+0s,2299161j)>
Go to list of users who liked
More than 5 years have passed since last update.
javaだと、SimpleDateFormat使ってやるやつ。
require 'date'
p DateTime.strptime("2013年9月21日", "%Y年%m月%d日")
=> #<DateTime: 2013-09-21T00:00:00+00:00 ((2456557j,0s,0n),+0s,2299161j)>
Register as a new user and use Qiita more conveniently
Go to list of users who liked