Another JDBC question dates this time...

Started by Konstantinos Agourosalmost 25 years ago2 messagesgeneral
Jump to latest
#1Konstantinos Agouros
elwood@agouros.de

Hi,

I can retrieve date and use the getDate function on my resultset no problem.
Now I want to insert a date like June 1st, how can I make sure it will become
june 1st and not january 6th?

Konstantin
--
Dipl-Inf. Konstantin Agouros aka Elwood Blues. Internet: elwood@agouros.de
Otkerstr. 28, 81547 Muenchen, Germany. Tel +49 89 69370185
----------------------------------------------------------------------------
"Captain, this ship will not sustain the forming of the cosmos." B'Elana Torres

#2Joseph Shraibman
jks@selectacast.net
In reply to: Konstantinos Agouros (#1)
Re: Another JDBC question dates this time...

Use '2001-06-01'.

And use the jdbc list.

Konstantinos Agouros wrote:

Hi,

I can retrieve date and use the getDate function on my resultset no problem.
Now I want to insert a date like June 1st, how can I make sure it will become
june 1st and not january 6th?

Konstantin
--
Dipl-Inf. Konstantin Agouros aka Elwood Blues. Internet: elwood@agouros.de
Otkerstr. 28, 81547 Muenchen, Germany. Tel +49 89 69370185
----------------------------------------------------------------------------
"Captain, this ship will not sustain the forming of the cosmos." B'Elana Torres

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

--
Joseph Shraibman
jks@selectacast.net
Increase signal to noise ratio. http://www.targabot.com