regards
Hardy
require 'date'
d = DateTime.parse("28-Sep-2005")
d.to_s => "2005-09-28T00:00:00Z"
So, I would just do a gsub before calling parse. i.e. d =
DateTime.parse("28/Sep/2005".gsub!("/", "-"))
HTH
Hardy Henneberg <h...@hhenne.dk> writes:
% ruby -rdate -e 'puts Date.strptime("28/Sep/2005", "%d/%b/%Y")'
2005-09-28
--
eban
regards Hardy
I guess they are the same as those documented under:
% ri Time#strftime
HTH,
Stefan