Modul:LinkSubformDatum: Unterschied zwischen den Versionen

keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 4: Zeile 4:


function p.GetMonthday(frame)
function p.GetMonthday(frame)
pf = frame:getParent()
local pf = frame:getParent()
args = pf.args
local args = pf.args
date = args[1]
return p.get_monthday(args[1])
return get_monthday(date)
end
end


function get_monthday(date)
function p.get_monthday(date)
months=c.getMonthList()
local months=c.getMonthList()
date_array=str.split(date, "/")
local date_array=str.split(date, "/")
if c.isEmpty(date_array[1]) then
if c.isEmpty(date_array[1]) then
-- When datestring contained no "/"
-- When datestring contained no "/"
82.367

Bearbeitungen