title: How to determine if a date is the last day of the month?
body: <p>Can somebody help me on how to determine if the given date was the last date or day in a month?</p>
  
  <p>For example I have two dates, the one is 2013-01-27 and the other one is 2013-02-28. I need to determine if which date was the last day. So the one that must be display was the 2013-02-28 because its the last day of the month in february while 2013-01-27 was not the last day of the month in January.</p>
  
  <p>What will be the condition that I can use?</p>
  
  <p>Thanks in advance.</p>