D
dave
I have written asp code to insert current date and time.
my database is in sql server 2000.
this is the sql query that i m using.
sql = "INSERT INTO tblDailyVisitLog
(UserID,DailyDate,DailyTime) VALUES
('test',"&formatdatetime(date,2)&",'"&formatdatetime
(date,3)&"')"
But when I checked in the database in date and time field
it shows "1/1/1900" in both fields.
any help would be appreciated..
thanx.
david
my database is in sql server 2000.
this is the sql query that i m using.
sql = "INSERT INTO tblDailyVisitLog
(UserID,DailyDate,DailyTime) VALUES
('test',"&formatdatetime(date,2)&",'"&formatdatetime
(date,3)&"')"
But when I checked in the database in date and time field
it shows "1/1/1900" in both fields.
any help would be appreciated..
thanx.
david