0
 function Date_To_Show($value){

            $time           = explode(' ',$value);
            $date = $time[0];
                    $dateconvert = explode('-',$date);
                    $year  = $dateconvert[0];
                    $month = $dateconvert[1];
                    $day   = $dateconvert[2];
            $time = $time[1];
    return '0, 0, 0, '.ltrim($month,'0').', '.ltrim($day,'0').', '.$year."";
    }

$arrayDate = getdate(mktime(Date_To_Show($_GET['date'])));
echo  $arrayDate['wday'];

На все числа показывает субботу.(т.е. 6)

1
  • Кому должно? И каков формат date в запросе?
    – alexlz
    25 фев 2012 в 17:42

1 ответ 1

0

Может быть Ваша функция просто должна была делать это

date("w",strtotime($_GET['date']))

Ваш ответ

By clicking “Отправить ответ”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Всё ещё ищете ответ? Посмотрите другие вопросы с метками или задайте свой вопрос.