🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: how to convert 2digitdate->4digit?

#15686
From: Omer Azhar Qureshi
Date: Tue, 11 May 1999 00:00
15 lines
877 bytes
Nick,
i think that ur problem is woth the specification of ur format


> SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");

this should be

SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yy");

because ur giving it a date containing year field of length two....

hope this helps
regards
Oaq
Technical Details
Message-ID: <7h8e02$njs1@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <37366710.494CDF04@alchemy.co.nz>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,7ef68cf2148b90cb
X-Google-Attributes: gidf74b3,public
From: "Omer Azhar Qureshi" <oaq@systemeltd.com.pk>
Subject: Re: how to convert 2digitdate->4digit?
Date: 1999/05/11
Message-ID: <7h8e02$njs1@forums.borland.com>
X-Deja-AN: 476459737
References: <37366710.494CDF04@alchemy.co.nz>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.0810.800
Organization: Another Netscape Collabra Server User
X-MSMail-Priority: Normal
Newsgroups: borland.public.jbuilder.java.language