Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Subtracting dates
Message
 
À
26/11/2002 09:36:47
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00726958
Message ID:
00726976
Vues:
15
This message has been marked as the solution to the initial question of the thread.
>Using C#, how can I get the current date minus 5? For example, if today is 11/26/2002, how can I initalize a var as 11/21/2002?
>
>Thanks,
>
>Jerry


DateTime MyVar = DateTime.Now.AddDays(-5);
Michael McLain
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform