About coparing my Date with System Date

Hi,

I am new in Ax…

I want to compare my Date with system Date to check whether my batch is expired or not.

Can anyone Please tell me …How can i compare my Date with Sys Date.

Thanks,

Manas…

str tmp;
date d1,d2;
;

d1 = dateedit.dateValue(); // ur date
d2 = systemdateget(); // system date
if ( d1 == d2)
{
stringedit.text(‘yes’);
}
else
{
stringedit.text(‘no’);
}