Código PHP:
Ver originalfunction nextWDayFor($customWDays, $outputFormat)
{
$incDay = 0;
while(1) {
$nextWDay = date('D', $nextTDay); foreach ( $customWDays as $cWDay ) {
if ( $nextWDay == $cWDay ) {
return date($outputFormat, $nextTDay); }
}
$incDay++;
}
}
var customWeekDays
=array('Mon', 'Wed', 'Fri'); echo nextWDayFor($customWeekDays, 'D, M Y'); // Mon, May 2012, contando la fecha de este post.