Hey @fairymemay
Yes it shows like the below,
0 - Sunday
1 - Monday
2 - Tuesday
3 - Wednesday
4 - Thursday
5 - Friday
6 - Saturday
I guess when you ran the above code, as per your system day it would be Sunday that’s why it outputs as 0
Hope this helps
Thanks
#nK