Re: conver Date to long

From: Jim Kennedy <kennedy-family_at_home.com>
Date: Wed, 14 Nov 2001 17:20:40 GMT
Message-ID: <IJxI7.26147$XJ4.16112717_at_news1.sttln1.wa.home.com>


What does that number represent? Are you looking for seconds from midnight? seconds from a particulate date? What?
You need to be clearer as to what you are looking for. Just date to Long makes no sense.

Jim
"zuth" <tzhong_at_163.net> wrote in message news:c8c3eca3.0111140823.4ac8143b_at_posting.google.com...
> BTW, I just tried java.util.Date and try getTime. I got like
> '1003441200000', BUT, I need, example, '1003441232123'
>
> The first several digits are some. But java.util.Date looks not
> wrapper all filed, right? How can I resolve it?
>
>
>
>
> tzhong_at_163.net (zuth) wrote in message
 news:<c8c3eca3.0111131915.412b87a_at_posting.google.com>...
> > How to conver Date to long?
> >
> > I use 'select my_date from tbl;', it reply such as'11-Nov-01'.
> > However, I want it reply long, like '12345678901...'
> >
> > And, if I use JDBC, how can I get the long from Date? I searched Class
> > Java.sql.Date but can not find the proper answer.
> >
> > thanks,
> > tz
Received on Wed Nov 14 2001 - 18:20:40 CET

Original text of this message