Last active
August 29, 2015 14:27
-
-
Save jthmiranda/1ca394509f11e8dcda67 to your computer and use it in GitHub Desktop.
new data jasperreport
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// para insertar fecha en campo textfield | |
new java.text.SimpleDateFormat("dd-MMM-yyyy HH:mm:ss z", java.util.Locale.US).format(new java.util.Date()) | |
// para mostrar fecha en español | |
new Locale("ES") | |
// usando groovy | |
new groovy.lang.GroovyShell().evaluate("Calendar cal = Calendar.getInstance(); cal.set(2009, 8, 8); return cal.getTime(); ") | |
 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment