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”));

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 )

Google+ photo

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

Connecting to %s