Menampilkan tanggal


//untuk menampilkan default waktu indonesia (jakarta)

date_default_timezone_set(“Asia/Jakarta”);

//tanggal sekarang
$now1= date(“Y-m-d”);

//bulan depan
$next_month = date(“Y-m-d”,strtotime(“+1 months”));

// minggu depan
$next_week = date(“Y-m-d”,strtotime(“+7 days”));

Advertisement

Published by

susiloharjo

Khoirunnas anfa'ahum linnas A Father, Husband and love to learn person Love my Family, Electronics, Photography, Robot, Dreaming, Programming

Ditunggu komennya ...

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.