Today?

I want to do a script that checks if a date is the current day, ealier or later.

something like

if(date()==30.5.2004){
//something ahppen here
}else if(date()>30.5.2004) {
//something here
}else if(date()<30.5.2004) {
//something here
}

I cant find any good way to do this.