select *
from Advertisements
where DepartureDate < DATEPART('dd.mm.yy', '09.10.2010');
but i get
Msg 1023, Level 15, State 1, Line 1 Invalid parameter 1 specified for datepart.
in plsql is this very simple here is so complicated... Can someone tell me please how can i get all dates that are smaller than today.