Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Update First and Last Day of Previous Month with Carbon

$firstDayofPreviousMonth = Carbon::now()->startOfMonth()->subMonthsNoOverflow()->toDateString();

$lastDayofPreviousMonth = Carbon::now()->subMonthsNoOverflow()->endOfMonth()->toDateString();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Update #First #Last #Day #Previous #Month #Carbon
ADD COMMENT
Topic
Name
1+5 =