Localized date format

Hey everybody,

I would like to display my blogpost dates in my language (german). I found out that there is a ruby function l for that, but it doesn’t seem to work in Middleman. Does anybody know how to output the date in a locale format?

I use this in my blog in spanish:

<%= I18n.localize(current_article.date, :format => "%e de %B de %Y")  %>

Hope this helps.

Thank you for that solution. It works for me, but I had to set the default_locale of my page in config.rb to get it right:

I18n.default_locale = :de