Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Comparing Dates in C#
Message
 
 
À
27/09/2011 08:35:42
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01524808
Message ID:
01524868
Vues:
58
>>What is the equivalent of the ^ symbol in C#
>>? DATE() > {^2011/09/26} (in C# to ensure that Date Locality is not taken into account and Month is ot mixed up with Day ?)
>>
>>Tia
>>Gerard
>
>I have not found how you can define datetime literals
>
>In the example above
>
>
>bool greater = DateTime.Now.Date > new DateTime(2011, 09, 26);
>
>or 
>
>bool greater = DateTime.Today > new DateTime(2011, 09, 26);
>
>
Hi Gregory,

I found another link (first on Google)

http://msdn.microsoft.com/en-us/library/ms973825.aspx
a bit long, but shows samples of using various datetime formats.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform