Article View: borland.public.jbuilder.java.language
Article #52Re: Save timestamp without it's time...
From: Max Polk
Date: Wed, 11 Nov 1998 00:00
Date: Wed, 11 Nov 1998 00:00
16 lines
1046 bytes
1046 bytes
> When I update Timestamp fields, I want to ignore my GMT. > > Currently, if I create a timestamp using an expression like this > new Timestamp(1998, 0, 1, 0, 0, 0, 0) > > and save it to database, it saves: > 01/01/1998 03:00 > > What I must do to avoid this? > > I think that if I try > new Timestamp(1997, 11, 31, 21, 0, 0, 0) > it will save what I want but I don't like it. Try using SimpleDateFormat to parse a string, then convert that to a timestamp.
Technical Details
Message-ID:
<MPG.10b38031a0ad093e9896b7@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<36421A96.339BF07A@freemail.gr>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1073da,a9c08da5ed3fbf19 X-Google-Attributes: gid1073da,public X-Google-Thread: f74b3,a9c08da5ed3fbf19 X-Google-Attributes: gidf74b3,public From: none@none.com (Max Polk) Subject: Re: Save timestamp without it's time... Date: 1998/11/11 Message-ID: <MPG.10b38031a0ad093e9896b7@forums.borland.com> X-Deja-AN: 410739584 References: <36421A96.339BF07A@freemail.gr> Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.language,borland.public.jbuilder.database