Given a date in yyyy-mm-dd
format, how can I determine whether a date falls in the weekend in Angular/Javascript?
$scope.isWeekend= function(){
$scope.date = '2018-05-13';
/* if (day(date)=='saturday' || day(date)=='sunday') { */
alert("");
/* } */
}