"PHP" / Говнокод #2934 Ссылка на оригинал

0

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
$birthDay = $elements['birthDay']->getValue();

$d = $birthDay[0].$birthDay[1];
$m = $birthDay[3].$birthDay[4];
$y = $birthDay[6].$birthDay[7].$birthDay[8].$birthDay[9];

$birthDay = mktime(0, 0, 0, (int)$m, (int)$d, (int)$y);

Вот так вот в ПХП 5.2 конвертим дату из dd.mm.yyyy в timestamp

Запостил: paranoid paranoid, (Updated )

Комментарии (14) RSS

Добавить комментарий

Из-за тебя ушел bormand, guest!

    А не использовать ли нам bbcode?


    8