If I\'ve got a $date YYYY-mm-dd and want to get a specific $day (specified by 0 (sunday) to 6 (saturday)) of the week that YYYY-
$date
YYYY-mm-dd
$day
YYYY-
I had to use a similar solution for Portuguese (Brazil):