current time to java.sql.Date

2000-11-15 Thread jamsheer
Hi, Here is my problem..I want to insert the current date to a table of a = database.How can I get the current date in java.sql.Date?I used the = following code,but I think it is not a good idea?Can anyone help me to = find a solution? The code is, public java.sql.Date getDate() { Gregori

Re: current time to java.sql.Date

2000-11-15 Thread Louis
> Hi, > Here is my problem..I want to insert the current date to a table of a = > database.How can I get the current date in java.sql.Date?I used the = > following code,but I think it is not a good idea?Can anyone help me to = > find a solution? > The code is, > public java.sql.Date getDate()

Re: current time to java.sql.Date

2000-11-15 Thread Vishnu Akkaraju
2000 5:33 PM To: [EMAIL PROTECTED] Subject: Re: current time to java.sql.Date > Hi, > Here is my problem..I want to insert the current date to a table of a = > database.How can I get the current date in java.sql.Date?I used the = > following code,but I think it is not a good idea?Can a

Re: current time to java.sql.Date

2000-11-15 Thread Maxfield, Stephen (Exchange)
L PROTECTED] Subject: current time to java.sql.Date Hi, Here is my problem..I want to insert the current date to a table of a = database.How can I get the current date in java.sql.Date?I used the = following code,but I think it is not a good idea?Can anyone help me to = find a solution? The

Re: current time to java.sql.Date

2000-11-15 Thread jamsheer
IL PROTECTED]> Sent: Wednesday, November 15, 2000 9:19 PM Subject: Re: current time to java.sql.Date > hi, > > construct current time & date as > > java.sql.Timestamp ts = new > java.sql.Timestamp(System.getCurrentTimeMillis()); > > and then use > > pstmt.setTim

Re: current time to java.sql.Date

2000-11-15 Thread Vishnu Akkaraju
AIL PROTECTED]] Sent: Thursday, November 15, 2001 11:13 AM To: [EMAIL PROTECTED] Subject: Re: current time to java.sql.Date Ok, Thank you.. Then..How can I print the time and date in the HTML page using JSP?I want to show the time as '15 Nov,2000 09:41 P.M'. Can you specify that also