Answers for "get month name and year from date in php"

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
5

php grab month from date

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

php extract month and year from date

$time=strtotime($dateValue);
$month=date("F",$time);
$year=date("Y",$time);
Posted by: Guest on April-08-2022

Code answers related to "get month name and year from date in php"

Browse Popular Code Answers by Language