Article View: es.comp.lenguajes.java
Article #27568Re: COMO SABER LA FECHA DE ESPA�A
From: Koro
Date: Tue, 18 Aug 1998 00:00
Date: Tue, 18 Aug 1998 00:00
21 lines
1171 bytes
1171 bytes
Prueba a ver si esto te sirve
//cogemos la fecha y la hora actual del sistema
java.util.Date d = new java.util.Date();
//horario en la zona de Espania
Locale zona = new Locale("es","ES");
String myFecha =
DateFormat.getDateInstance(DateFormat.SHORT,zona).format(d);
Saludos: koro Gabiola
GRAJAL wrote:
> Hola, me gustaria saber la forma de obtener la fecha local espa�ola.
> Por
> ejemplo, si quiero la inglesa introduzco el campo UK. En el JDK 1.1
> creo
> que no existe ningun campo para Espa�a.
>
> Gracias.
Technical Details
Message-ID:
<35D92CCD.47CB6846@si.ehu.es>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<35D8C6EE.D86D1C9B@santandersupernet.com>Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII X-Google-Thread: 1116f3,abffe17757fb4f9a X-Google-Attributes: gid1116f3,public From: Koro <jibgacok@si.ehu.es> Subject: Re: COMO SABER LA FECHA DE ESPA�A Date: 1998/08/18 Message-ID: <35D92CCD.47CB6846@si.ehu.es> X-Deja-AN: 382220644 Content-Transfer-Encoding: 8bit References: <35D8C6EE.D86D1C9B@santandersupernet.com> To: GRAJAL <GRAJAL@santandersupernet.com> X-Priority: 3 (Normal) Content-Type: text/plain; charset=iso-8859-1 Organization: upv Mime-Version: 1.0 Newsgroups: es.comp.lenguajes.java