Results 1 to 3 of 3
Thread: problem with date field
- 06-12-2007, 02:30 PM #1
Senior Member
- Join Date
- Jun 2007
- Posts
- 110
- Rep Power
- 0
problem with date field
I want to filter a record in a table of SQLServer2000, the dateInit field is the primary key, but It doesn't work the CONVERT function because the record doesn't filter it, that is to say: the record doesn't find it.
I do the where like this:
Do you know what is happening?Java Code:Date dteDate dteDate = this.Date1.Value WHERE dateInit = "& dteDate &"
Last edited by Ed; 06-12-2007 at 04:28 PM.
- 06-12-2007, 04:01 PM #2
Senior Member
- Join Date
- Jun 2007
- Posts
- 119
- Rep Power
- 0
You have to put a simple Quotation mark (‘)and finish the concatenation of the var with the queryWHERE dateInit = "& dteDate &"
- 06-12-2007, 04:27 PM #3
Senior Member
- Join Date
- Jun 2007
- Posts
- 132
- Rep Power
- 0
Similar Threads
-
Difference between current date and anothe date
By vijay balusamy in forum New To JavaReplies: 1Last Post: 04-16-2008, 04:15 PM -
FInal field cannot be assigned
By ravian in forum New To JavaReplies: 3Last Post: 12-13-2007, 02:26 PM -
Help with define an integer field
By trill in forum New To JavaReplies: 1Last Post: 08-07-2007, 07:32 AM -
problem with date class
By gabriel in forum New To JavaReplies: 3Last Post: 08-03-2007, 01:28 PM -
Doubt with hibernate and date field
By Ed in forum JDBCReplies: 2Last Post: 07-02-2007, 04:25 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks