Skip to content

Latest commit

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

php_date_convert

<?php$date = date("Y-m-d");
echo"OLD $date<br>";
$newDate = convertDate($date);
echo"NEW $newDate\n";
functionconvertDate($date)
{
$temp = explode("-", $date);
$month = [
"January",
"Februari",
"Maret",
"April",
"Mei",
"Juni",
"Juli",
"Agustus",
"September",
"Oktober",
"Novermber",
"Desember",
];
$numberMonth = (int)$temp[1];
$temp[1] = $month[$numberMonth];
$res = $temp[2] . "" . $temp[1] . "" . $temp[0];
return$res;
}

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages