Carbon: Difference between revisions
Johan Efendi (talk | contribs) (Created page with " =Formatting= Membuat format dalam bahasa Indonesia <syntaxhighlight lang="php"> $now = Carbon::now(); $now->translatedFormat("l, d/m/Y"); // Output: Senin, 20/05/2024 </syntaxhighlight>") |
Johan Efendi (talk | contribs) |
||
Line 6: | Line 6: | ||
<syntaxhighlight lang="php"> | <syntaxhighlight lang="php"> | ||
$now = Carbon::now(); | $now = Carbon::now(); | ||
$now->timezone("Asia/Jakarta"); | |||
$now->translatedFormat("l, d/m/Y"); // Output: Senin, 20/05/2024 | $now->translatedFormat("l, d/m/Y"); // Output: Senin, 20/05/2024 | ||
</syntaxhighlight> | </syntaxhighlight> |
Latest revision as of 16:28, 18 June 2024
Formatting
Membuat format dalam bahasa Indonesia
$now = Carbon::now();
$now->timezone("Asia/Jakarta");
$now->translatedFormat("l, d/m/Y"); // Output: Senin, 20/05/2024