how to convert the string in this format ="Monday April, 3, 2006 10:34
AM" into a datetime object. When i use Date.parse, i lose the time on
it. when i use ParseDate.parsedate(d)
i get only a array. any help is appreciated.
E:\TradingTools\CODE>irb
irb(main):001:0> d="Monday April, 3, 2006 10:34 AM"
=> "Monday April, 3, 2006 10:34 AM"
irb(main):002:0> Date.parse(d)
=> #<Date: 4907657/2,0,2299161>
how to convert the string in this format ="Monday April, 3, 2006 10:34
AM" into a datetime object. When i use Date.parse, i lose the time on
it. when i use ParseDate.parsedate(d)
i get only a array. any help is appreciated.
E:\TradingTools\CODE>irb
irb(main):001:0> d="Monday April, 3, 2006 10:34 AM"
=> "Monday April, 3, 2006 10:34 AM"
irb(main):002:0> Date.parse(d)
=> #<Date: 4907657/2,0,2299161>
On Apr 4, 1:56 pm, Justin Collins <justincoll...@ucla.edu> wrote:
Junkone wrote:
> how to convert the string in this format ="Monday April, 3, 2006 10:34
> AM" into a datetime object. When i use Date.parse, i lose the time on
> it. when i use ParseDate.parsedate(d)
> i get only a array. any help is appreciated.