“php mendapatkan tanggal akhir bulan” Kode Jawaban

PHP Dapatkan Tanggal Mulai dan Akhir dari Bulan dan Tahun

<?php

$query_date = '2010-02-04';

// First day of the month.
echo date('Y-m-01', strtotime($query_date));

// Last day of the month.
echo date('Y-m-t', strtotime($query_date));
Indian Gooner

php mendapatkan tanggal akhir bulan

// First date of the month.
$monthFirstDate = date('Y-m-01', strtotime('today'));

// Last date of the month.
$monthLastDate = date('Y-m-t', strtotime('today'));

// Second last date of the month
$monthLastSecondDate = date('Y-m-d', strtotime('-2 day', strtotime('today')));
Lokesh003

php hari terakhir bulan

$a_date = "2009-11-23";
echo date("Y-m-t", strtotime($a_date));
Evil Echidna

Jawaban yang mirip dengan “php mendapatkan tanggal akhir bulan”

Pertanyaan yang mirip dengan “php mendapatkan tanggal akhir bulan”

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya