Skip to main content

Ajustar Fechas en iReport

Una forma sencilla de ajustar el formato de fechas en iReport, es abrimos el reporte,
nos colocamos en el campo de tipo fecha


En el pattern, simplemente escojemos Date y seleccionamos el formato deseado.


Tambien si queremos mostrar la fecha de un registro almacenado en MySQL, en nuestro JFrame

Date fecha = rs.getDate("fechabaja");
Format formatter;
formatter = new SimpleDateFormat("dd/MM/yyyy");
String s = formatter.format(fecha);
jFormattedTextFieldFechaBaja.setText(s);

Comments

Anonymous said…
Buena Explicación , Sencilla y al grano, bien ilustrada
Anonymous said…
Excelente :) gran ayuda para los que estamos comenzando con jasper
Anonymous said…
Excelente... Gracias!!
Nancy said…
mUCHISIMAS GRACIASSSSSSS ..
Nancy said…
MUCHISIMAS GRACIASSS
Anonymous said…
I have been browsing online more than 3 hours today,
yet I never found any interesting article like yours.

It's pretty worth enough for me. In my view, if all site owners and
bloggers made good content as you did, the web will be much more useful than ever before.
avbravo said…
thank you