http://ruby-doc.org/stdlib-2.1.1/libdoc/date/rdoc/Date.html
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"
On Wednesday, July 15, 2015 at 8:06:07 AM UTC-4, VIDYA SAGAR POGIRI wrote:
>
> Hi i want to convert my string into date using ruby
>
> Jun 28 2015 to 06/28/2015. Can you help
>
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/8fe88c79-f1d4-4c84-b60b-1f93867ccc0c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.