Forums
This topic is locked
DoDateTime Function
Posted 17 Sep 2002 15:05:49
1
has voted
17 Sep 2002 15:05:49 Vince Baker posted:
I am getting the following error when I try to format the way a date is going to be displayed.Microsoft VBScript runtime error '800a000d'
Type mismatch: 'DoDateTime'
I am using SQL Server 7 and IIS 4. The date field is:
Arrival_Date and datatype = smalldatetime
Has always worked in the past with UD and SQL 7 and UD with Access 2000.
Regards
Vince
Response.write("The best line of code you can ever use"
VBScript | ASP | HTML | SQL | Oracle | Hosting
Replies
Replied 24 Sep 2002 16:18:45
24 Sep 2002 16:18:45 Stuart Harland replied:
You could try:
dtDateVariable = Now() 'or a recordset date etc
response.write formatdatetime(dtDateVariable, vbShortDate)
********************
wheatNOTmeat
dtDateVariable = Now() 'or a recordset date etc
response.write formatdatetime(dtDateVariable, vbShortDate)
********************
wheatNOTmeat