🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #52

Re: Save timestamp without it's time...

#52
From: Max Polk
Date: Wed, 11 Nov 1998 00:00
16 lines
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-mail
References: <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