Hi,
!!IMPORTANT!! Solution found, you need to use a sql.timestamp. Although there are 2 problems with the timestamp. First of all if you want to put an Date into an Timestamp you need to do: new Timestamp(date.getTime().getTime()); Kinda weird...
Also the months of a Timestamp start at 0, so january is 0. This means 23-02-2010 in Timestamp means 23-01-2010.
Thanks all.
!!IMPORTANT!!
I've got a question about Java with MySQL. I've made a table called "Reserveringen". This table got 5 columns as shown below. The 2nd and 3th column are both datetime types (made in Dreamcoder for mysql). But as you can see both ain't showing any time. Even when I get them from the database with Java, it shows the time is 23:00:00 if I'm correct.
Id vanaf tot klant_idmachine_id
9 12/3/2010 1/14/2011 6 29
8 1/3/2011 1/14/2011 6 27
2 1/14/2011 6/20/2010 6 9
3 1/14/2011 6/20/2010 6 11
4 1/14/2011 6/20/2010 6 19
5 1/14/2011 6/20/2010 6 21
6 1/14/2011 6/20/2010 6 23
7 1/14/2011 6/20/2010 6 25
1 1/14/3911 1/14/3911 6 5
Tableinformation from mysql:
reserveringen
Field Null Type Key Default Extra
Id _ NO _ int(10) _ PRI _ _ _
vanaf _ YES _ datetime _ _ _ _
tot _ YES _ datetime _ _ _ _
klant_id _ YES _ int(10) _ MUL _ _ _
machine_id _ YES _ int(10) _ MUL _ _ _
Any solutions?