how to compare date value using XQuery

Hi,
We are using AG Tamino XML Server 4.2.1.
I want to extract the XML records based on create date.
for example following query.

for $q in input()/agreementView
where $q/extensions/AgreementCreateDate/Date/@date = 2008-03-29
return $q

any idea on this!

thanks
wills.

It