Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > date format

Reply
Thread Tools

date format

 
 
[XaToA]
Guest
Posts: n/a
 
      07-30-2003
hello
i am begining to working againt one postgresql database with java.
i must to put into the database some dates.
i must to configure the date fields into the database. which will be the
date format? timestamp?
if in java i have the String d="03/03/2003" how can i to format, convert,
this String to date timestamp?

which will be the idoneous field format for storing the dates and for
working with java?

Thanks


 
Reply With Quote
 
 
 
 
Roedy Green
Guest
Posts: n/a
 
      07-30-2003
On Wed, 30 Jul 2003 10:54:13 +0200, "[XaToA]"
<(E-Mail Removed)> wrote or quoted :

>which will be the idoneous field format for storing the dates and for
>working with java?


JDBC has its own Date format that it converts to the native format of
the SQL.

see http://mindprod.com/jgloss/sql.html#ESCAPES for sample code.

--
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Date, date date date.... Peter Grison Java 10 05-30-2004 01:20 PM
Date Format - best way of converting a string into a date format Brian Candy ASP .Net 2 02-18-2004 02:13 PM
Given a date, how to find the beginning date and ending date of that week Matt ASP .Net 1 11-08-2003 09:14 PM
Given a date, how to find the beginning date and ending date of that week Matt C Programming 3 11-08-2003 09:07 PM
Given a date, how to find the beginning date and ending date of that week Matt C++ 2 11-08-2003 08:30 PM



Advertisments