'Januari', 'Februari', 'Maret', 'April', 'Mei', 'Juni', 'Juli', 'Agustus', 'September', 'Oktober', 'November', 'Desember' ); $tahun = substr($tgl, 0, 4); $bulan = $nama_bulan[(int) substr($tgl, 5, 2)]; $tanggal = substr($tgl, 8, 2); $text = ''; if ($tampil_hari) { $urutan_hari = date('w', mktime(0, 0, 0, substr($tgl, 5, 2), $tanggal, $tahun)); $hari = $nama_hari[$urutan_hari]; $text .= "$hari, $tanggal $bulan $tahun"; } else { $text .= "$tanggal $bulan $tahun"; } return $text; } function tambah_nol_didepan($value, $threshold = null) { return sprintf("%0" . $threshold . "s", $value); } function RemoveSpecialChar($str) { // Using str_replace() function // to replace the word $res = str_replace(array( '\'', '"', ',', ';', '<', '>', '[', ']' ), ' ', $str); // Returning the result return $res; } function RemoveSpecialCharPlus($str) { // Using str_replace() function // to replace the word $res = str_replace(array( '\'', '"', ';', ':', '<', '>', '[', ']', '{', '}', ), ' ', $str); // Returning the result return $res; } function toDmy($date){ return date("d-m-Y", strtotime($date)); }