Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Inserting into DateTime field
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Title:
Inserting into DateTime field
Miscellaneous
Thread ID:
00818605
Message ID:
00818605
Views:
79
I am learning how to add records to VFP DB from .NET.

I can't seem to figure out how to insert into a DataTime type field.

A web form has textbox where user enters a date (not time) (e.g. "8/9/2003"). Then I need to add the entered date with current time to the field "DATE_TIME" field.

Therefore my OleDbCommand would look something like:
"insert into MYTABLE (DATE_TIME) values (" + txtDateBox.text + ")"
Obviously my syntax "txtDateBox.text" is wrong. What is the right syntax for this expression?

TIA.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Next
Reply
Map
View

Click here to load this message in the networking platform