Board Thread:Lua Help/@comment-5288784-20150624125806

Hello,

It may seem like a stupid question, but how do I make mw.language:formatDate function to work? I was able to achieve the desired results with frame:preprocess (even if it is not optimal), but not this one. Seeing a working example would be cool (let's say, displaying 2014-06-01 in "d M Y" format).

Okay, I actually found the solution while I was writing this post. The fact that you need to use mw.language.new first should be comunicated better. 