andycharger
Centurion
- Joined
- Apr 2, 2003
- Messages
- 152
I have a string from a textbox (request.form("date"))
Now I want to format that into a date format.
Reason I ask is when im preparing it for my SQL statement im doing this:
This gives me "# 01/02/2004/ #"
However, it has problems gewtting into SQL Server like this. It seems to want it like this:
# 01 / 02 / 2004 # and not all closed up.
How can I format my string so that SQL server will take it?
Now I want to format that into a date format.
Reason I ask is when im preparing it for my SQL statement im doing this:
Visual Basic:
strDate = "# " & request.form("date") & " #"
This gives me "# 01/02/2004/ #"
However, it has problems gewtting into SQL Server like this. It seems to want it like this:
# 01 / 02 / 2004 # and not all closed up.
How can I format my string so that SQL server will take it?