Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

get last month php

$currentMonth = date('M');// if number, then date('m');
//Last month
$lastMonth = Date("F", strtotime("first day of previous month");
$nextMonth = Date("F", strtotime("first day of next month");
 
PREVIOUS NEXT
Tagged: #month #php
ADD COMMENT
Topic
Name
1+4 =