1. Date.today.strftime "%b %d, '%y"
  2. Time.now.strftime "%I:%M%p"
  3.  
  4. # config/locales/custom.yml
  5. custom:
  6. time:
  7. formats:
  8. short: "%b %d, '%y"
  9.  
  10. <p><%= l Time.now, :format => :short %></p>