Hi,
I'm using a free input text plugin which can store a string in a variable.
I have some problems working on dates: let's suppose player have stored in var(x). I.e. = "01\01\2001" or "01/01/2001"
I want to store in another variable the day value ("01" in this case), and in another the month value (still "01" in this case).
I can't figure out how to do this.
I tried to check if ("1|01") < ("\1\|\01\|\2\|\02\.......") but it doesn't work...
I suppose there is some problem with "\", "/" symbols cuz even
always turns false to me. Is it possible?
I'm using a free input text plugin which can store a string in a variable.
I have some problems working on dates: let's suppose player have stored in var(x). I.e. = "01\01\2001" or "01/01/2001"
I want to store in another variable the day value ("01" in this case), and in another the month value (still "01" in this case).
I can't figure out how to do this.
I tried to check if ("1|01") < ("\1\|\01\|\2\|\02\.......") but it doesn't work...
I suppose there is some problem with "\", "/" symbols cuz even
Code:
$gameVariables.value(x).toLowerCase().includes("01\")