13.08.2018, 01:08
You'll have to split your string.
If your birthdate has this type of format: "21/02/1990"
You can do something like this:
If your birthdate has this type of format: "21/02/1990"
You can do something like this:
PHP код:
test_function() {
new string[] = "21/02/1990";
new year, month, day;
new pos, tmp[5];
strmid(tmp, string, 0, (pos = strfind(string, "/", true, 0)));
day = strval(tmp);
strmid(tmp, string, pos + 1, (pos = strfind(string, "/", true, pos + 1)));
month = strval(tmp);
strmid(tmp, string, pos + 1, strlen(string));
year = strval(tmp);
printf("%i/%i/%i", day, month, year);
}

