D
douglas
I have the following two questions:
1. If a date field is passed to a vb.net 2005 application as null, what
code needed so that the vb.net application can handle the 'null' date and
work with it as a 'blank' field?
2. In a stored procedure that is called by the vb.net 2005 application, a
'blank date' is returned as '1/2/1900'. How would you pass the date as
'blank' instead of '1/2/1900' to the vb.net application? The following is the
stored procedure:
reate table testtable (tablekey as int,testdate as datetime)
insert into testtable values (1,getdate())
insert into testtable values(2,'')
The source for the first insert statement will contain a valid date.
The source for the second insert statement will not contain any date.
that is why I want the value in the second inswert statement to be blank.
Thus can you tell me how to pass a blank date value?
1. If a date field is passed to a vb.net 2005 application as null, what
code needed so that the vb.net application can handle the 'null' date and
work with it as a 'blank' field?
2. In a stored procedure that is called by the vb.net 2005 application, a
'blank date' is returned as '1/2/1900'. How would you pass the date as
'blank' instead of '1/2/1900' to the vb.net application? The following is the
stored procedure:
reate table testtable (tablekey as int,testdate as datetime)
insert into testtable values (1,getdate())
insert into testtable values(2,'')
The source for the first insert statement will contain a valid date.
The source for the second insert statement will not contain any date.
that is why I want the value in the second inswert statement to be blank.
Thus can you tell me how to pass a blank date value?