Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Inserting Date field into database.

Status
Not open for further replies.

BSchaff

Programmer
Apr 10, 2001
4
US
I am using ADO for database access. I am inserting a row into a table with several columns. The insert works fine, except the date field is not formatted correctly. How do you format the date field in the insert statement?
 
Can you clarify "not formatted properly"? How are you sending the date value? Can you post the SQL or code you are using to update the table?
 
Amazingly willing getting ready to respond to this message with my code sample I got field to format properly. Sorry for the bother.


 
use any of these in your insert statements

format (date,"dd/MM/YYYY")

or format (date,"yyyy/MM/dd")

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top