Script ini saya buat digunakan untuk mengkonversi 2 digit tahun menjadi 4 digit, scriptnya seperti ini :<br /><pre><code class="language-php"> $tgl = trim($matches[5]); $ttransaksi = \DateTime::createFromFormat('d/m/y', $tgl)->format('Y/m/d'); </code></pre>Sekian dan terima kasih. hahaha<br /><br /><div class="separator" style="clear: both; text-align: center;"><a href="https://1.bp.blogspot.com/-5eScef6Onlw/WBhfyJzBEOI/AAAAAAAAA-o/pPVLV0dh9jgeHR4jB4uyyINyAUChRnWNQCLcB/s1600/php.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="Merubah 2 Digit Tahun Menjadi 4 Digit" border="0" height="208" src="https://1.bp.blogspot.com/-5eScef6Onlw/WBhfyJzBEOI/AAAAAAAAA-o/pPVLV0dh9jgeHR4jB4uyyINyAUChRnWNQCLcB/s320/php.png" title="Merubah 2 Digit Tahun Menjadi 4 Digit" width="320" /></a></div><br />
Posting Komentar
Posting Komentar