How to remove installed RPMs by a specific date?

Hi there,
Is there a way to remove rpms installed after specific date? I was improvising on my unixacademy Linux training and messed up with installation options. Can I remove the rpms installed after specific date?

You can view all rpms by date with

rpm -qa --queryformat '%{installtime} (%{installtime:date}) %{name}\n'

With this you can view only the packages names

rpm -qa --queryformat '%{installtime} (%{installtime:date}) %{name}\n' | grep "Mon 15 Feb 2010" | awk '{ print $9}'

Finally this script will erase all rpms from give date

for rpm in $(rpm -qa --queryformat '%{installtime} (%{installtime:date}) %{name}\n' | grep "Mon 15 Feb 2010" | awk '{ print $9}'); 
do rpm -e $rpm" 
done