1. 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!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Date Shenanigans

Discussion in 'Scripts' started by Veraid, Feb 25, 2020.

  1. Veraid

    Veraid Member

    Feb 8, 2017
    Likes Received:
    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"

    Skript Mirror

    Code (Text):
    1. command /date:
    2.   trigger:
    3.     send "&a(Today) &f%day%, %month%, %year% (%day of the week%)"
    4.     set {_date} to now
    5.     add 1000 days to {_date}
    6.     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

Share This Page