Answers for "php get current month start and end date"

PHP
1

get current month php

current month
  //half name in words
  date('M');
//full name in words
date('F');
//number
date('m');
Posted by: Guest on July-30-2020
1

php grab month from date

$month = date("m",strtotime($mydate));
Posted by: Guest on June-11-2020
0

get first day of current month php

<?php
    // First day of this month
    $d = new DateTime('first day of this month');
    echo $d->format('jS, F Y');
?>
Posted by: Guest on July-30-2020
2

get current month php

date('m');
Posted by: Guest on May-25-2020
0

php date function get previous month

$tgl = '25 january 2012';

$prevmonth = date("M Y",mktime(0,0,0,date("m", strtotime($tgl))-1,1,date("Y", strtotime($tgl))));
echo $prevmonth;
Posted by: Guest on August-18-2020
1

get next month first day php

$config_month  = 1;
$config_day = 1;

$new_expiry_date = date('Y-m-d', mktime(0, 0, 0, date('m') + $config_month, 1 + $config_day, date('Y')));
Posted by: Guest on January-08-2021

Code answers related to "php get current month start and end date"

Browse Popular Code Answers by Language