I have used strftime function of ActiveSupport class. current_time = Time.now #today is 30 December, 2009 current_time.strftime("%m-%d-%y") # "12-30 ...
確定! 回上一頁