How to create a function, that outputs Weekdays on given date?
7 views (last 30 days)
Show older comments
hello everyone,
basically i have to create my own function, which gives me the weekday when i give date. for exp in this format :
input : 26,06,2021
output : Date = 26,06,2021
Day = Saturday
I am trying to write it, but i am not getting any further, i would really appreciate it, if anyone can help me.
0 Comments
Answers (1)
Cris LaPierre
on 1 Nov 2021
D = datetime(2021,06,26);
out = day(D,'name')
See Also
Categories
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!