How can I find first day of the next month and the remaining days till this day from the present day?

Thank you

 find first day of the next month
stackoverflow

Cut Copy & Paste 

reate a timestamp for 00:00 on the first day of next month:

$firstDayNextMonth = strtotime('first day of next month');

The number of days til that date is the number of seconds between now and then divided by (24 * 60 * 60).

$daysTilNextMonth = ($firstDayNextMonth - time()) / (24 * 3600);

Sourch:

Website: stackoverflow

Website Url : https://stackoverflow.com/

More Details Goto

LEAVE A REPLY

Please enter your comment!
Please enter your name here