Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Inserting into DateTime field
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro et .NET
Titre:
Inserting into DateTime field
Divers
Thread ID:
00818605
Message ID:
00818605
Vues:
80
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform