ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Empty Date (https://www.excelbanter.com/excel-programming/339285-empty-date.html)

Frederick Chow

Empty Date
 
Hi all,

Just want to know if there are methods to assign an empty date (or null
value) to a date variable, just like I can assign and empty string "" to a
string variable. Thanks.

Frederick Chow
Hong Kong.



JE McGimpsey

Empty Date
 
AFAIK, no. As with other numeric variables, date data types are given an
initial value of 0.

If you use a Variant instead, you can assign Null to it.

In article ,
"Frederick Chow" wrote:

Hi all,

Just want to know if there are methods to assign an empty date (or null
value) to a date variable, just like I can assign and empty string "" to a
string variable. Thanks.

Frederick Chow
Hong Kong.


Frederick Chow

Empty Date
 
Thanks a lot then.

"JE McGimpsey" wrote in message
...
AFAIK, no. As with other numeric variables, date data types are given an
initial value of 0.

If you use a Variant instead, you can assign Null to it.

In article ,
"Frederick Chow" wrote:

Hi all,

Just want to know if there are methods to assign an empty date (or null
value) to a date variable, just like I can assign and empty string "" to
a
string variable. Thanks.

Frederick Chow
Hong Kong.





All times are GMT +1. The time now is 10:37 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com