Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Storing a date into its simplest format
Message
De
30/01/2008 17:36:34
 
 
À
30/01/2008 17:26:01
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
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:
01287326
Vues:
9
>myDate.AddSeconds(i)

I need some adjustments here based on that approach. Do you see what is wrong?
        Dim lnDateAsTicks As Double = 0
        Dim ldNewDate As Date
        Dim ldDate As Date = Date.Now
        MessageBox.Show(ldDate.ToString)
        lnDateAsTicks = ldDate.Ticks
        ldNewDate.AddSeconds(lnDateAsTicks)
        MessageBox.Show(ldNewDate.ToString)
I can get the lnDateAsTicks. But, when I try to add that number of ticks to an empty date value, I end up with an error.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform