Ya esta solucionado, muy facil
con la funcion add
Datetime.Add(-1) // Se obtine el dia anterior
Por tanto ya se puede comparar.
Gracias
--
Diese E-Mail enth=E4lt vertrauliche und/oder rechtlich gesch=FCtzte Inf
ormationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail
irrt=FCmlich erhalten haben, informieren Sie bitte sofort den Absender
und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbef
ugte Weitergabe dieser Mail ist nicht gestattet.
This e-mail may contain confidential and/or privileged information. If
you are not the intended recipient (or have received this e-mail in err
or) please notify the sender immediately and destroy this e-mail. Any u
nauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.