SyntaxFix
Write A Post
Hire A Developer
Questions
require 'date' current_time = DateTime.now current_time.strftime "%d/%m/%Y %H:%M" # => "14/09/2011 17:02" current_time.next_month.strftime "%d/%m/%Y %H:%M" # => "14/10/2011 17:02"