Recently I saw here a script that returns the number of days of the month however I made my own script and I think that it's better elaborated. It's true that this is my opinion, but here it's. Evaluate it yourself.
print dbo.f_days_in_month('2000-02-21')
2007-10-02 (first published: 2002-06-20)
15,443 reads