local D=2020 local n=1 local X=1 local b="\074\097\110\117\097\114\121 \049\044 \050\048\050\048"function getDate()local J={{"\074\097\110\117\097\114\121",31;31},{"\070\101\098\114\117\097\114\121";59;28};{"\077\097\114\099\104",90,31};{"\065\112\114\105\108",120;30},{"\077\097\121";151,31};{"\074\117\110\101";181;30},{"\074\117\108\121";212;31};{"\065\117\103\117\115\116",243,31},{"\083\101\112\116\101\109\098\101\114";273;30};{"\079\099\116\111\098\101\114",304,31};{"\078\111\118\101\109\098\101\114";334,30};{"\068\101\099\101\109\098\101\114",365,31}}D=math.floor(1970+t/31579200)if D%4==0 then J[2][3]=29 for D,n in pairs(J)do if D~=1 then n[2]=n[2]+1 end end end X=math.floor((t/86400)%365.25+1)for D,b in pairs(J)do if b[2]-b[3]<=X then n=D end end local r=J[n]X=(X+r[3])-r[2]D,X=tostring(D),tostring(X)local G,e="\044 "," "b=J[n][1]..(e..(X..(G..D)))end function display(D)if D then getDate()delay(0,function()for D=1,0,-0.05 do script.Parent.Time.TextTransparency,script.Parent.Date.TextTransparency=D,D wait()end script.Parent.Time.TextTransparency,script.Parent.Date.TextTransparency=0,0 end)end script.Parent.Date.Text=b end function start()display(true)while true do t=tick()getDate()display()wait()end end start()
-- tick() returns the number of seconds since January 1st, 1970
-- Because this is a LocalScript, it will return the time based on your timezone
-- Don't mess with anything in the script. The constants and variables are all mixed together
local year = 2020
local month = 1
local day = 1
local Date = "January 1, 2020"
function getDate()
	local months = {
		--		{"MONTH", TOAL DAYS TO YEAR, DAYS}	<- Format
		{ "January", 31, 31 },
		{ "February", 59, 28 },
		{ "March", 90, 31 },
		{ "April", 120, 30 },
		{ "May", 151, 31 },
		{ "June", 181, 30 },
		{ "July", 212, 31 },
		{ "August", 243, 31 },
		{ "September", 273, 30 },
		{ "October", 304, 31 },
		{ "November", 334, 30 },
		{ "December", 365, 31 },
	}
	year = math.floor(1970 + (t / 31579200))
	if (year % 4) == 0 then -- Check for leap year
		months[2][3] = 29
		for i, v in pairs(months) do
			if i ~= 1 then
				v[2] = (v[2] + 1)
			end
		end
	end
	day = math.floor(((t / 86400) % 365.25) + 1) -- Get current day of the year. Starts at 0, so 1 is added	(365.25 is the average # of days in a year due to leap year)
	for i, m in pairs(months) do
		if (m[2] - m[3]) <= day then -- Get month based on day
			month = i
		end
	end
	local m = months[month]
	day = (day + m[3] - m[2]) -- Get day of the month
	year, day = tostring(year), tostring(day)
	local c, s = ", ", " " -- Comma, space
	Date = (months[month][1] .. s .. day .. c .. year)
end
function display(start)
	if start then
		getDate()
		delay(0, function()
			for i = 1, 0, -0.05 do
				script.Parent.Time.TextTransparency, script.Parent.Date.TextTransparency = i, i
				wait()
			end
			script.Parent.Time.TextTransparency, script.Parent.Date.TextTransparency = 0, 0
		end)
	end
	script.Parent.Date.Text = Date
end
function start()
	display(true)
	while true do
		-- Simplicity FTW:
		t = tick()
		getDate()
		display()
		wait()
	end
end
start()
