2015-04-03 54 views

回答

1

您應該使用strftime方法:

Date.today.strftime('%d%m') 
# => "0304"