×

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: Sep 24, 2012 9:22 AM
Views: 223
  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 2 years ago
$date = new Zend_Date();
$lastDay = $date->get(Zend_Date::MONTH_DAYS);
Massimo Zappino 2 years ago
You are right, thanks.

Write a comment