i am trying to write a code which compare current system date and month from a date obtained from database.
for example
system date is 6th may 2012
and database date is 6th may 2010
i want to compare only 6th may from both objects.
please help with any example