Module:Date: Difference between revisions

Jump to navigation Jump to search
Sur (talk | contribs)
initial
 
Sur (talk | contribs)
m format_date not local
Line 6: Line 6:
}
}


local function format_date(date_string)
function format_date(date_string)
     -- Split the date string into month, day, and year
     -- Split the date string into month, day, and year
     local month, day, year = date_string:match("(%d%d)-(%d%d)-(%d%d%d%d)")
     local month, day, year = date_string:match("(%d%d)-(%d%d)-(%d%d%d%d)")