Solved Date format

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Runakai

Supporter
Apr 27, 2018
496
32
28
21
Hello its me. Is it possible to change the date format? When i was using it a few days ago it was like "10.05.18 21:15" and now its "05/10/18 2.45 PM".

current code:

code_language.skript:
command /testing1:
    trigger:
        set {_now} to "%now%"
        set {_timespan} to {_now} parsed as date
        send "%{_now}%"

I know i can change it in the config in skript but i don't know which type i should use
 
Last edited:
try
code_language.skript:
command /testing1:
    trigger:
        set {_now} to "%now%"
        replace all "/" in {_now} with "."
        replace all "." in {_now} with ":"
 
try
code_language.skript:
command /testing1:
    trigger:
        set {_now} to "%now%"
        replace all "/" in {_now} with "."
        replace all "." in {_now} with ":"
Its not what i want. In Skript you can easily change the date format in the config.yml but i don't know how to call them
 
set line 100 in config of skript to "dd.MM.yyyy HH:mm"
[doublepost=1525961792,1525961761][/doublepost]
upload_2018-5-10_16-16-24.png
 
Status
Not open for further replies.