×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Massimo Zappino
Added: Sep 24, 2012 9:21 AM
Modified: Aug 11, 2017 2:35 PM
Views: 2132
  1. $date = new Zend_Date();
  2. $lastDay =  date('t',strtotime($date->getIso('en_US')));
  3.  
  4. // don't use this function for dates greater than 2038
  5. // http://en.wikipedia.org/wiki/Year_2038_problem

2 comments

Paulo Henrique 8 years ago
$date = new Zend_Date();
$lastDay = $date->get(Zend_Date::MONTH_DAYS);
Massimo Zappino 8 years ago
You are right, thanks.

Write a comment