Answers for "php get current date year and month"

PHP
8

php get current year

// get current year using php
<?php echo date("Y"); ?>
Posted by: Guest on August-03-2020
1

php grab month from date

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

Code answers related to "php get current date year and month"

Browse Popular Code Answers by Language