Board Thread:Lua Help/@comment-25357967-20170101135527/@comment-4522253-20170101193123

os.date isn't really the right set of functions unless you're at the bare-metal of the OS; it also can't take %W as a parameter.

What you really want is Lua's lang:formatDate or the ParserFunctions equivalent #time.