Day of Week

The code returns the day of the week for any input date from year 1600 until anytime far into future

You are now following this Submission

It is very simple to use, you just need to initiate the variable DMY (day month year) as specified in the use instructions and run the code. The day of the week will pop in the command window, as well as the type of the year (leap or non-leap).
It is more like a leisure activity, I have created it one night after learning how to calculate in mind the weekday for any date and my internet connection went of. I had no possibility to check myself so i created one.
Thumbs up for http://gmmentalgym.blogspot.de/

Have fun :)

Cite As

Vlad (2026). Day of Week (https://www.mathworks.com/matlabcentral/fileexchange/48510-day-of-week), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.1.0.0

small change of the summary

1.0.0.0