Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Understanding time of day functions
Message
De
20/12/2018 14:02:45
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
Information générale
Forum:
C#
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01664711
Message ID:
01664730
Vues:
33
>Thank you. I also found that I can specify the time as
>
>tsMidnight = TimeSpan.Parse("00:00:00");
>
>And then compare this with the current time. The date is not important, in this case for me.
>
>Thank you and Naoto for your help!

Oh you meant compare time to time? You don't need to write that as string and parse simply initialize as:

new TimeSpan(0,0,0);

or:
DateTime.Today.TimeOfDay
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform