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
> 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()
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
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
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
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