Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Handling Date/Time values
Message
De
23/08/2005 04:21:26
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01042832
Message ID:
01042833
Vues:
19
>Hi,
>
>How do you handle date/time values in C#.NET. in vb6 i used to convert values to double so that i can do very fast arithmetic on date/time values...
>
>i also store them in double format in the database.
>
>thanks
>
>
>Paolo

You can do fast arithmetic w/o doing a conversion to double (their internal representation is already a double). Store them as datetime.
PS: A datetime is a long representing ticks (100 nanoseceond units) since 1/1/0001 12:00AM.
Cetin
Ç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