示例#1
0
 public function date_to_tgl($in)
 {
     $tgl = substr($in, 8, 2);
     $bln = substr($in, 5, 2);
     $thn = substr($in, 0, 4);
     if (checkdate($bln, $tgl, $thn)) {
         $out = substr($in, 8, 2) . " " . Fungsi::bulan2(substr($in, 5, 2)) . " " . substr($in, 0, 4);
     } else {
         $out = "<span class='error'>N/A</span>";
     }
     return $out;
 }