> 
> **Possible Duplicate:**  
> 
> [how to find out number of days in month in mysql](https://stackoverflow.com/questions/10736989/how-to-find-out-number-of-days-in-month-in-mysql) 
> 
> 
> 

I need to calculate number of days in a particular month. Let' say if user given 11-25-2012. query needs to return it as 30. Please help me in writing sql code in Postgres.

Thanks in Advance.
Naveen