Reg:Convesion of string to date

Hi i want to convert my string into date using ruby

Jun 28 2015 to 06/28/2015. Can you help

Have you tried :

require ‘active_support/time’

Time.parse(‘2015-07-15’)

Att,

Fernando

http://apidock.com/ruby/DateTime/strftime

require ‘date’ Date.parse(‘Jun 28 2015’).strftime(‘%m/%d/%Y’)

irb(main):003:0> Date.parse(‘Jun 28 2015’).strftime(‘%m/%d/%Y’) => “06/28/2015”