MATLAB: Getting the day of the week for a given date

dateday of the week

As today is Wednesday with date June 8, 2016. how can i write a code to get the day of given dates: like what day is Nov 29 I'm trying to create a struct with date
day
month
with month and date as input

Best Answer

d='jun-08-2016'
d=datestr(d,'mmm-dd-yyyy')
datestr(d,'mmm-ddd-yyyy')