Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

subtract some days php

// 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')));
 
PREVIOUS NEXT
Tagged: #subtract #days #php
ADD COMMENT
Topic
Name
2+5 =