Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Storing a date into its simplest format
Message
From
30/01/2008 19:50:02
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
 
 
To
30/01/2008 18:43:56
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01287307
Message ID:
01287371
Views:
10
>This is much more simpler:
>
>
>        Dim lnTicks As Double
>        Dim ldDate As Date = Date.Now
>        Dim ldNewDate As Date
>        lnTicks = ldDate.Ticks
>        ldNewDate = New DateTime(lnTicks)
>
I don't know anything about Ticks, but you might want to make sure it is processor independent.
Very fitting: http://xkcd.com/386/
Previous
Reply
Map
View

Click here to load this message in the networking platform