I need to use DateTime.now to capture the current date and โcancelโ the time.
For example, this shows what I do not want: DateTime.now => Sat, 19 Nov 2011 18:54:13 UTC +00:00
This shows what I want: DateTime.now.some_operation => 2011-11-06 00:00:00 UTC
ruby datetime ruby-on-rails
Mike Nov 19 '11 at 18:55 2011-11-19 18:55
source share