Adapte:

Script to find the day of the week - MikroTik Wiki