Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Howto build a Select filter with DateTime
Message
De
24/09/2007 04:00:57
 
 
À
22/09/2007 19:40:09
John Baird
Coatesville, Pennsylvanie, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Divers
Thread ID:
01256085
Message ID:
01256191
Vues:
13
>>>
>>>DataRow[] rows = dt.Select("BackupType=1 AND BackupFinishDate < #" + ds + "#");
>>>
>>
>>Hi,
>>I think I tried this. Anyway, same problem I'm afraid. FWIW expression expands as:
>>"BackupType=1 AND BackupFinishDate < #22/09/2007 17:49:48#"
>
>
>Try using .ToShortDateString() instead of .ToString();

Hi,
Same error I'm afraid. Plus I need the time comparison....
Regards,
Viv
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform