Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Initial value of a DateTime type object
Message
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01107509
Message ID:
01107515
Views:
20
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform