Date Shenanigans

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

Veraid

Member
Feb 8, 2017
25
8
3
28
This adds 4 new expressions to Skript

day of [the] week [(of|for|at) %date%] - Returns the day of the week, for example "Tuesday"
day [(of|for|at) %date%] - Returns the day of the month, for example "25th"
month [(of|for|at) %date%] - Returns the month, for example "February"
year [(of|for|at) %date%] - Returns the year, for example "2020"

Dependencies
Skript Mirror


Example
Code:
command /date:
  trigger:
    send "&a(Today) &f%day%, %month%, %year% (%day of the week%)"
    set {_date} to now
    add 1000 days to {_date}
    send "&c(1000 days from now) &f%day of {_date}%, %month of {_date}%, %year of {_date}% (%day of the week for {_date}%)"

Make sure to set Enable American Format to true if you are using month/day/year instead of day/month/year