Thứ Hai, 30 tháng 10, 2017

datime - show Jquery


if($currentlang=="vietnamese"){
    $str_search = array (
"Mon",
"Tue",
"Wed",
"Thu",
"Fri",
"Sat",
"Sun",
"am",
"pm",
":"
    );
    $str_replace = array (
"Thứ hai",
"Thứ ba",
"Thứ tư",
"Thứ năm",
"Thứ sáu",
"Thứ bảy",
"Chủ nhật",
" , AM",
" , PM",
"H : "
   );
}
$timenow = gmdate("D, d/m/Y - g:i a", time() + 7*3600);
$timenow = str_replace( $str_search, $str_replace, $timenow);
<div class="time">".$timenow."</div>

Không có nhận xét nào:

Đăng nhận xét