xtremeLogic
Programmer
Hi,
I have a sql server stored procedure that I would like to execute from vb.net. The problem is that it won't complete the insert into the table because of the date being sent. I am getting the date from a form field so I format it like
However, it does not complete the stored proc due to the date format being too long. I traced the execution of the stored proc and got the following date parameter being sent to the db:
The problem with that is that because of the length of it, the db doesn't accept. The field in my db is of type datetime.
Any suggestions would be greatly appreciated
I have a sql server stored procedure that I would like to execute from vb.net. The problem is that it won't complete the insert into the table because of the date being sent. I am getting the date from a form field so I format it like
Code:
Format("{0:MM/dd/yyyy}", docDate)
However, it does not complete the stored proc due to the date format being too long. I traced the execution of the stored proc and got the following date parameter being sent to the db:
Code:
'Jan 20 2004 12:00:00:000AM'
Any suggestions would be greatly appreciated