Click here to Skip to main content
15,908,015 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: format date Pin
alexfromto22-Feb-07 8:22
alexfromto22-Feb-07 8:22 
GeneralRe: format date Pin
Marcus J. Smith22-Feb-07 9:04
professionalMarcus J. Smith22-Feb-07 9:04 
GeneralRe: format date Pin
jds120722-Feb-07 8:43
jds120722-Feb-07 8:43 
GeneralRe: format date Pin
alexfromto22-Feb-07 8:53
alexfromto22-Feb-07 8:53 
AnswerRe: format date Pin
Dave Kreskowiak22-Feb-07 8:45
mveDave Kreskowiak22-Feb-07 8:45 
GeneralRe: format date Pin
alexfromto22-Feb-07 8:58
alexfromto22-Feb-07 8:58 
GeneralRe: format date Pin
jds120722-Feb-07 9:22
jds120722-Feb-07 9:22 
GeneralRe: format date Pin
Dave Kreskowiak22-Feb-07 9:27
mveDave Kreskowiak22-Feb-07 9:27 
jds1207 wrote:
Am I doing something wrong?


You missed the part where I said you had to provide a DateTime object to the Value property of the Parameter object. You have to convert that String to a DataTime object first. Try the DateTime.Parse()[^] method to get a DateTime object from a String. Don't forget to valid your data before you pass it to the database. You don't want dates from the early 5th century getting in there now do you?


Dave Kreskowiak
Microsoft MVP - Visual Basic


GeneralRe: format date Pin
tonymathewt22-Feb-07 17:06
professionaltonymathewt22-Feb-07 17:06 
GeneralRe: format date Pin
Dave Kreskowiak23-Feb-07 2:08
mveDave Kreskowiak23-Feb-07 2:08 
QuestionExchange Pin
alexfromto22-Feb-07 7:27
alexfromto22-Feb-07 7:27 
AnswerRe: Exchange Pin
Dave Kreskowiak22-Feb-07 8:41
mveDave Kreskowiak22-Feb-07 8:41 
GeneralRe: Exchange Pin
alexfromto22-Feb-07 9:03
alexfromto22-Feb-07 9:03 
GeneralRe: Exchange Pin
Dave Kreskowiak22-Feb-07 9:22
mveDave Kreskowiak22-Feb-07 9:22 
GeneralRe: Exchange Pin
alexfromto22-Feb-07 9:30
alexfromto22-Feb-07 9:30 
GeneralRe: Exchange Pin
Dave Kreskowiak22-Feb-07 9:59
mveDave Kreskowiak22-Feb-07 9:59 
GeneralRe: Exchange Pin
alexfromto22-Feb-07 10:40
alexfromto22-Feb-07 10:40 
GeneralRe: Exchange Pin
Dave Kreskowiak22-Feb-07 11:57
mveDave Kreskowiak22-Feb-07 11:57 
QuestionDisplaying forms Pin
jady8422-Feb-07 7:17
jady8422-Feb-07 7:17 
AnswerRe: Displaying forms Pin
Dave Kreskowiak22-Feb-07 8:38
mveDave Kreskowiak22-Feb-07 8:38 
AnswerRe: Displaying forms Pin
TwoFaced22-Feb-07 9:10
TwoFaced22-Feb-07 9:10 
QuestionOleDB error Pin
7prince22-Feb-07 7:10
7prince22-Feb-07 7:10 
AnswerRe: OleDB error Pin
Dave Kreskowiak22-Feb-07 8:36
mveDave Kreskowiak22-Feb-07 8:36 
GeneralRe: OleDB error Pin
7prince22-Feb-07 12:55
7prince22-Feb-07 12:55 
QuestionHow to avoid serialization of events Pin
Bergerrudi22-Feb-07 5:51
Bergerrudi22-Feb-07 5:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.