dayfromdate

Privateunrated

Content

63 lines
{=(comment):You can set below options as per your need}
{=(tagname):dayfromdate}
{=(comment):Prefix you use}
{=(prefix):!}

{=(t):0 3 2 5 0 3 5 1 4 6 2 4}
{=(no31):2 4 6 9 11}
{=(monthslist):January February March April May June July August September October November December}
{=(days):Monday Tuesday Wednesday Thursday Friday Saturday Sunday}
{=(date):{replace(/, ):{replace(-, ):{args(1)}}}}
{=(year):{date(1)}}
{=(month):{date(2)}}
{=(day):{date(3)}}

{=(forhelp):For help type `{prefix}{tagname} help`}
{=(deshelp):This tag give day of the week of any date that is given as argument.
The date has to be in yyyy/MM/dd or yyyy-MM-dd format. The tags uses Tomohiko Sakamoto’s Algorithm.
Current date is as per UTC timezone. Error responses are set based on popular movies quotes for fun.

Type `{prefix}{tagname} <date>`
Example: ```{prefix}{tagname} {strf:%Y/%m/%d}```

Support **Carl** ❤
<https://www.patreon.com/carlbot>
}

{=(comment):checks.}
{=(desmore12):Enter more than 12 months again, i dare you. I double dare you YOU M\*\*\*\*\*F\*\*\*\*\*!! :face_with_symbols_over_mouth:
{forhelp}}
{=(desmore31):Hope is a good thing, maybe the best of things, and no good things ever dies. But today is different, since you have entered more than 31 days for a month. All hope is lost!! :upside_down: 
{forhelp}}
{=(desfor31):🧙‍♂️ YOU SHALL NOT PASS!!, since {monthslist({month})} does not have 31 days.
{forhelp}}
{=(desfeb):Houston we have a problem...there is only 28 or 29 days in month of February.🚀 
{forhelp}}
{=(fornotleapyear):Don't be like Marvin, always have an opinion. Like i have one for you, that {year} is not a leap year 🔫
{forhelp}}
{=(zerodaymonth):One Does Not Simply enter zero as argument in date 👻
{forhelp}}

{=(checkfor31):{all({day}==31|{contains({month}):{no31}}==true):true}==true}
{=(checkfeb):{all({month}==2|{day}==30):true}==true}
{=(checkforleapyear):{if({m:{year}%400}==0.0):true|{if({m:{year}%4}==0.0):{if({m:{year}%100}!=0.0):true|false}|false}}}


{=(userdate):{year}{if({m:trunc({month}/10)}>0):|0}{month}{if({m:trunc({day}/10)}>0):|0}{day}}
{=(currentdate):{strf:%Y}{if({m:trunc({strf:%m}/10)}>0):|0}{strf:%m}{if({m:trunc({strf:%d}/10)}>0):|0}{strf:%d}}

{=(ny):{m:{year}-{if({month}<3):1|0}}}
{=(calculate):{m:trunc(({ny}+{ny}/4-{ny}/100+{ny}/400+{t({month})}+{day})%7)}}

{break({month}>12):{desmore12}}
{break({day}>31):{desmore31}}
{break({checkfor31}):{desfor31}}
{break({checkfeb}):{desfeb}}
{break({any({day}==0|{month}==0|{year}==0):true}==true):{zerodaymonth}}
{break({all({checkforleapyear}==false|{day}==29|{month}==2):true}==true):{fornotleapyear}}

{=(past):It was **{days({calculate})}** on {args(1)}}
{=(present):Today is **{days({calculate})}**}
{=(future):It will be **{days({calculate})}** on {args(1)}}

{if({args(1)}==help):{deshelp}|{if({args(1)}==):{forhelp}|{if({userdate}=={currentdate}):{present}|{if({userdate}<{currentdate}):{past}|{future}}}}}
Raw JSON
{
  "id": 630417,
  "created_at": "2021-02-24T00:20:38.000Z",
  "tag_name": "dayfromdate",
  "nsfw": false,
  "owner_id": "597040433096556544",
  "uses": 7,
  "description": null,
  "restricted": false,
  "shared": false,
  "deleted": false,
  "safe": "unrated",
  "hidden": false,
  "guild_id": "731054936132943883",
  "sharer": "597040433096556544",
  "content": "{=(comment):You can set below options as per your need}\n{=(tagname):dayfromdate}\n{=(comment):Prefix you use}\n{=(prefix):!}\n\n{=(t):0 3 2 5 0 3 5 1 4 6 2 4}\n{=(no31):2 4 6 9 11}\n{=(monthslist):January February March April May June July August September October November December}\n{=(days):Monday Tuesday Wednesday Thursday Friday Saturday Sunday}\n{=(date):{replace(/, ):{replace(-, ):{args(1)}}}}\n{=(year):{date(1)}}\n{=(month):{date(2)}}\n{=(day):{date(3)}}\n\n{=(forhelp):For help type `{prefix}{tagname} help`}\n{=(deshelp):This tag give day of the week of any date that is given as argument.\nThe date has to be in yyyy/MM/dd or yyyy-MM-dd format. The tags uses Tomohiko Sakamoto’s Algorithm.\nCurrent date is as per UTC timezone. Error responses are set based on popular movies quotes for fun.\n\nType `{prefix}{tagname} <date>`\nExample: ```{prefix}{tagname} {strf:%Y/%m/%d}```\n\nSupport **Carl** ❤\n<https://www.patreon.com/carlbot>\n}\n\n{=(comment):checks.}\n{=(desmore12):Enter more than 12 months again, i dare you. I double dare you YOU M\\*\\*\\*\\*\\*F\\*\\*\\*\\*\\*!! :face_with_symbols_over_mouth:\n{forhelp}}\n{=(desmore31):Hope is a good thing, maybe the best of things, and no good things ever dies. But today is different, since you have entered more than 31 days for a month. All hope is lost!! :upside_down: \n{forhelp}}\n{=(desfor31):🧙‍♂️ YOU SHALL NOT PASS!!, since {monthslist({month})} does not have 31 days.\n{forhelp}}\n{=(desfeb):Houston we have a problem...there is only 28 or 29 days in month of February.🚀 \n{forhelp}}\n{=(fornotleapyear):Don't be like Marvin, always have an opinion. Like i have one for you, that {year} is not a leap year 🔫\n{forhelp}}\n{=(zerodaymonth):One Does Not Simply enter zero as argument in date 👻\n{forhelp}}\n\n{=(checkfor31):{all({day}==31|{contains({month}):{no31}}==true):true}==true}\n{=(checkfeb):{all({month}==2|{day}==30):true}==true}\n{=(checkforleapyear):{if({m:{year}%400}==0.0):true|{if({m:{year}%4}==0.0):{if({m:{year}%100}!=0.0):true|false}|false}}}\n\n\n{=(userdate):{year}{if({m:trunc({month}/10)}>0):|0}{month}{if({m:trunc({day}/10)}>0):|0}{day}}\n{=(currentdate):{strf:%Y}{if({m:trunc({strf:%m}/10)}>0):|0}{strf:%m}{if({m:trunc({strf:%d}/10)}>0):|0}{strf:%d}}\n\n{=(ny):{m:{year}-{if({month}<3):1|0}}}\n{=(calculate):{m:trunc(({ny}+{ny}/4-{ny}/100+{ny}/400+{t({month})}+{day})%7)}}\n\n{break({month}>12):{desmore12}}\n{break({day}>31):{desmore31}}\n{break({checkfor31}):{desfor31}}\n{break({checkfeb}):{desfeb}}\n{break({any({day}==0|{month}==0|{year}==0):true}==true):{zerodaymonth}}\n{break({all({checkforleapyear}==false|{day}==29|{month}==2):true}==true):{fornotleapyear}}\n\n{=(past):It was **{days({calculate})}** on {args(1)}}\n{=(present):Today is **{days({calculate})}**}\n{=(future):It will be **{days({calculate})}** on {args(1)}}\n\n{if({args(1)}==help):{deshelp}|{if({args(1)}==):{forhelp}|{if({userdate}=={currentdate}):{present}|{if({userdate}<{currentdate}):{past}|{future}}}}}",
  "embed": "{}",
  "last_fetched": "2026-10-21T00:26:03.758Z"
}