require 'date' def convert_date(old_date) DateTime.strptime(old_date, '%m/%d/%Y:%H:%M:%S').strftime("%Y%m%d%H%M%S") end convert_date('02/16/2015:19:16:07') ...
確定! 回上一頁