I have this date in this format.
var str="2019-08-19";(year/month/date)
var parts =str.split('-');
var day =parseInt(parts[2],10);
I need to figure out as which day was 19th (Monday/Tuesday /...) . What i tried doing was splitting the given date but that could only give the information such as 19 etc