Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Handling Date/Time values
Message
From
23/08/2005 04:21:26
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01042832
Message ID:
01042833
Views:
20
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform