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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date with VB.net

Status
Not open for further replies.

WJProctor

Programmer
Jun 20, 2003
151
0
0
GB
Hi, In the data structure for one of my tables ive set one field to be a date. In VB how do i format the date to enter it into this field because i seem to be having some problems getting it right. I also would like to save the time in this field which i belive is possible from my tests. Hope someone can help

Regards

JP
 
1. Is your table in Microsoft SQL Server?
2. Is your date field a DATETIME datatype?

You could have it entered as:

2003-12-15 09:00:00

-SQLBill
 
A quick way to enter just the date into a datetime column is:
CONVERT(DATETIME, '12/15/2003', 102)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top