answersLogoWhite

0


Best Answer

hi i can say that datetime cant be null because datetime is valuetyp(struct) its not referece type(object)

User Avatar

Wiki User

16y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Can a DateTime variable be null?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you clear a variable in PHP?

You can unset a variable in PHP by setting it to NULL. You can set a variable to NULL by declaring it normally, or using the function "unset()". Both methods are acceptable, and accomplish the same thing. Examples of both: ---- $variable = NULL; ---- unset($variable); ----


What is is null in Microsoft access?

Variable


What is the use of null pointer?

Pointer is a variable that stores address of a variable . A NULL Pointer a pointer that doesn't point to anything, it is a literal zero .Some people ,notably C++ programmers, prefer to use 0 rather than NULL.


What is code in c-sharp to substract system date?

The method Substract() of DateTime class, the result is not a DateTime, but a TimeSpan. (If substract by a TimeSpan, then the function returns a DateTime) Example: DateTime aprilFool2010 = DateTime.Parse("2010-04-01"); DateTime aprilFool2011 = DateTime.Parse("2011-04-01"); Console.WriteLine(aprilFool2011.Subtract(aprilFool2010)); //365.00:00:00


Datetime protocol is it possible in windows?

Datetime protocol is possible in Windows of the protocol logging that is available in windows.


How do you import time on python?

Use the datetime module. To get the hours you would do datetime.hour or you could just type datetime


Null in programming?

in Russian Null means zero. in some languages Null is a macro for zero. in others Null is a single-tone object which referes to the value Null and thus could be compared to other values. Null has many names from nill Nill nil in diffrent languages. most of the time, Null is used to indicate, no value is set to a variable.


What is the by default value of globally declaration variable?

int, float: 0 pointer: NULL


Default value for instance variable?

Depending on the language you are using the default of an instance variable can be '0', 0, null, empty, '', or have a random number.


What is the difference between an array shift and unsetting a variable in PHP?

By shifting the values in an array, you are moving a key's value to the previous key. The very first key's value is obliterated. By shifting all values in the array, all keys will have a value of NULL. Unsetting a variable is entirely different -- performing a variable unsetting causes the variable to have a value of NULL, as if it was never set.


What does null means in java?

Null is a value that any variable can have. It means the absence of a value. However, null can only be assigned to object reference variables; attempting to execute a method on a null variable will cause the JVM to throw a NullPointerError.


How do you delete reference of an object?

This often happens automatically, when the variable that references an object goes out of scope. Alternatively, you can set the variable that refers to an object to some reserved value, such as NULL (details vary, depending on the programming language).This often happens automatically, when the variable that references an object goes out of scope. Alternatively, you can set the variable that refers to an object to some reserved value, such as NULL (details vary, depending on the programming language).This often happens automatically, when the variable that references an object goes out of scope. Alternatively, you can set the variable that refers to an object to some reserved value, such as NULL (details vary, depending on the programming language).This often happens automatically, when the variable that references an object goes out of scope. Alternatively, you can set the variable that refers to an object to some reserved value, such as NULL (details vary, depending on the programming language).