I am using a variable DateStart to write current date time to a SQL table field defined as Char(20).
DateStart = Now()
The problem arises when this field of 20 character length gets the value where the small date time on the client computer is defined for yyyy. I have a truncate error returned.
I have tried to use the function below in various ways and always get an error "variable is undefined :'format'"
DateStart = format(Now(),"MM/DD/YY HH:NN:SS AMPM"
or writng to the table with this as the variable for the value in the insert statement.
format(DateStart,"MM/DD/YY HH:NN:SS AMPM"
The vbs is not part of asp. It is run from a batch file.
Any ideas?
DateStart = Now()
The problem arises when this field of 20 character length gets the value where the small date time on the client computer is defined for yyyy. I have a truncate error returned.
I have tried to use the function below in various ways and always get an error "variable is undefined :'format'"
DateStart = format(Now(),"MM/DD/YY HH:NN:SS AMPM"
or writng to the table with this as the variable for the value in the insert statement.
format(DateStart,"MM/DD/YY HH:NN:SS AMPM"
The vbs is not part of asp. It is run from a batch file.
Any ideas?