I'm using these to assign a variable to a smalldatetime object in sql
server:
dim todnews = DateTime.Today.ToString ( "d" )
'connection string to server is on this line
Dim strSQL2 as string ="SELECT Arrived,Title,ID,story FROM
tblGeneral WHERE Arrived = 'todnews'"
...but I get a syntax error saying i can't change a string to
smalldatetime data type. When I try replacing DateTime.Today.ToString (
"d" ) with SmallDateTime.Today.ToString ( "d" ), the error says there
is no object named "SmallDateTime"
TIA
..netsports