Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Initial value of a DateTime type object
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01107509
Message ID:
01107515
Vues:
21
>Hi,
>
>When I declare a DateTime variable as follows:
>
>System.DateTime dt;
>
>
>What's the initial value?

12:00:00 AM. Display the value to see it, like in VB.NET:

MsgBox(dt.date)

>
>How can I determine that a DateTime variable has not been initialized?

Like in VB.NET:
      If Not IsNothing(dt) Then
            MsgBox(dt)
        End If
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform