Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はRubyが初めてで、「dd.mm.yyyy」形式の文字列を日時に変換するのに助けが必要です。前もって感謝します!
Date.strptime('03.02.2001', '%d.%m.%Y')
UPDATE : これは Date オブジェクトを返します
デビッドが以下に正当に述べたように:
DateTime.strptime('03.02.2001', '%d.%m.%Y')
ルビーの DateTime オブジェクトを提供します。