날짜형식 변환 함수 추가

This commit is contained in:
chicpro
2014-03-12 16:55:01 +09:00
parent f368d7cb9d
commit 343de88d62

View File

@ -2604,4 +2604,15 @@ function htmlspecialchars2($str)
$str = strtr($str, $trans);
return $str;
}
// date 형식 변환
function conv_date_format($format, $date, $add='')
{
if($add)
$timestamp = strtotime($add, strtotime($date));
else
$timestamp = strtotime($date);
return date($format, $timestamp);
}
?>