Good afternoon.
It can be formatted for understanding, and not in the machine version.
I would post both options, but for some reason the “code” tags are not perceived twice in the same message by the forum.
I did not want to make an exact mask for regular expressions, since it was only necessary to distinguish the presence of a number from the string characters in the variable.
The initial variable filter clause is correct if you want to add protection against incorrect data to the script. If necessary, you can add:)
Do not tell how you can write correctly two or more times “code” what would be correctly displayed on the forum?
:global FuncDateConvert do={
}
:global FuncDateConvert do={
}
Like on my previous posts, simply add 3 “enter” new line 
no enter:
code1
code2
with 3 enter:
code3
code4
Thank you. It turned out but with oddities and dances with a tambourine.
If better not finded, this is my method for convert literal month to two characters string with “zero filler”
:global strDate [/system clock get date]
:global arrMonths {jan="01";feb="02";mar="03";apr="04";may="05";jun="06";jul="07";aug="08";sep="09";oct="10";nov="11";dec="12"}
:global strYear [:pick $strDate 7 11]
:global strMonth ($arrMonths->[ :pick $strDate 0 3 ])
:global strDay [:pick $strDate 4 6]
:put "$strDate converted on ISO format is $strYear-$strMonth-$strDay"
# or on short way
:global strDate [/system clock get date]
:global arrMonths {jan="01";feb="02";mar="03";apr="04";may="05";jun="06";jul="07";aug="08";sep="09";oct="10";nov="11";dec="12"}
:put "Today is $[:pick $strDate 7 11]-$($arrMonths->[ :pick $strDate 0 3 ])-$[:pick $strDate 4 6]"
Rex I’m a beginner in the area, could you take a doubt please?
In case this script changes the date presented in the Mikrotik? If that’s the case, should I put this script to run on the scheduler for this to happen?