I am currently doing the project event-manager from the Ruby lessons : https://www.theodinproject.com/lessons/event-manager
At the end I need to transform a String (which is a date) to a Ruby Object to get the datetime.
I looked for the strptime function of DateTime but it does not work on me. For example :
DateTime.strptime(‘11/1/09 10:54’, ‘%-m/%-d/%y %k:%M’) gets me an Argument error and I really don’t know why.
I tried with this one : DateTime.strptime(‘2001-02-03T04:05:06+07:00’, ‘%Y-%m-%dT%H:%M:%S%z’) and its works but the string I get from the event is like : ‘month_no_padded/day_no_padded/year%100 Hour:Min’
Thank you for your help…