Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Storing a date into its simplest format
Message
De
30/01/2008 19:50:02
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
 
 
À
30/01/2008 18:43:56
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01287307
Message ID:
01287371
Vues:
12
>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/
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform