<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://test1.pbc.xxx/w/index.php?action=history&amp;feed=atom&amp;title=Module%3AGetBirthDate</id>
	<title>Module:GetBirthDate - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://test1.pbc.xxx/w/index.php?action=history&amp;feed=atom&amp;title=Module%3AGetBirthDate"/>
	<link rel="alternate" type="text/html" href="https://test1.pbc.xxx/w/index.php?title=Module:GetBirthDate&amp;action=history"/>
	<updated>2026-05-01T19:22:29Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://test1.pbc.xxx/w/index.php?title=Module:GetBirthDate&amp;diff=2975&amp;oldid=prev</id>
		<title>PeaceDeadC: Created page with &quot;local p = {} local PBD = require(&#039;Module:PBD&#039;)  local function splitDate(date)     local day, month, year = nil, nil, nil          if date then         day, month, year = string.match(date, &#039;(%d+)%s+(%a+)%s+(%d+)&#039;)                  if not year then             month, day = string.match(date, &#039;(%a+)%s+(%d+)&#039;)                          if not day then                 day, month = string.match(date, &#039;(%d+)%s+(%a+)&#039;)             end         end                  if not month a...&quot;</title>
		<link rel="alternate" type="text/html" href="https://test1.pbc.xxx/w/index.php?title=Module:GetBirthDate&amp;diff=2975&amp;oldid=prev"/>
		<updated>2025-03-19T00:09:52Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;local p = {} local PBD = require(&amp;#039;Module:PBD&amp;#039;)  local function splitDate(date)     local day, month, year = nil, nil, nil          if date then         day, month, year = string.match(date, &amp;#039;(%d+)%s+(%a+)%s+(%d+)&amp;#039;)                  if not year then             month, day = string.match(date, &amp;#039;(%a+)%s+(%d+)&amp;#039;)                          if not day then                 day, month = string.match(date, &amp;#039;(%d+)%s+(%a+)&amp;#039;)             end         end                  if not month a...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local p = {}&lt;br /&gt;
local PBD = require(&amp;#039;Module:PBD&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
local function splitDate(date)&lt;br /&gt;
    local day, month, year = nil, nil, nil&lt;br /&gt;
    &lt;br /&gt;
    if date then&lt;br /&gt;
        day, month, year = string.match(date, &amp;#039;(%d+)%s+(%a+)%s+(%d+)&amp;#039;)&lt;br /&gt;
        &lt;br /&gt;
        if not year then&lt;br /&gt;
            month, day = string.match(date, &amp;#039;(%a+)%s+(%d+)&amp;#039;)&lt;br /&gt;
            &lt;br /&gt;
            if not day then&lt;br /&gt;
                day, month = string.match(date, &amp;#039;(%d+)%s+(%a+)&amp;#039;)&lt;br /&gt;
            end&lt;br /&gt;
        end&lt;br /&gt;
        &lt;br /&gt;
        if not month and not day then&lt;br /&gt;
            year = string.match(date, &amp;#039;(%d+)&amp;#039;)&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
    &lt;br /&gt;
    if day then day = tonumber(day) end&lt;br /&gt;
    if year then year = tonumber(year) end&lt;br /&gt;
    &lt;br /&gt;
    return day, month, year&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function monthToNumber(month)&lt;br /&gt;
    local monthNames = {&lt;br /&gt;
        [&amp;quot;January&amp;quot;] = 1, [&amp;quot;February&amp;quot;] = 2, [&amp;quot;March&amp;quot;] = 3,&lt;br /&gt;
        [&amp;quot;April&amp;quot;] = 4, [&amp;quot;May&amp;quot;] = 5, [&amp;quot;June&amp;quot;] = 6,&lt;br /&gt;
        [&amp;quot;July&amp;quot;] = 7, [&amp;quot;August&amp;quot;] = 8, [&amp;quot;September&amp;quot;] = 9,&lt;br /&gt;
        [&amp;quot;October&amp;quot;] = 10, [&amp;quot;November&amp;quot;] = 11, [&amp;quot;December&amp;quot;] = 12&lt;br /&gt;
    }&lt;br /&gt;
    return monthNames[month]&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.property(frame)&lt;br /&gt;
    local propertyId = frame.args[1]&lt;br /&gt;
    local part = frame.args[2]&lt;br /&gt;
    local format = frame.args[3] or &amp;#039;number&amp;#039;&lt;br /&gt;
    local date = PBD.property(frame, propertyId)&lt;br /&gt;
    &lt;br /&gt;
    local day, month, year = splitDate(date)&lt;br /&gt;
    &lt;br /&gt;
    local result = &amp;#039;&amp;#039;&lt;br /&gt;
    if part == &amp;#039;day&amp;#039; and day then&lt;br /&gt;
        result = day&lt;br /&gt;
    elseif part == &amp;#039;month&amp;#039; and month then&lt;br /&gt;
        if format == &amp;#039;name&amp;#039; then&lt;br /&gt;
            result = month&lt;br /&gt;
        else&lt;br /&gt;
            result = monthToNumber(month)&lt;br /&gt;
        end&lt;br /&gt;
    elseif part == &amp;#039;year&amp;#039; and year then&lt;br /&gt;
        result = year&lt;br /&gt;
    end&lt;br /&gt;
    &lt;br /&gt;
    return result&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>PeaceDeadC</name></author>
	</entry>
</feed>