Here you can find the source of getCurrentDate()
public static final java.util.Date getCurrentDate()
//package com.java2s; /**/*from w w w. j a v a 2s .com*/ * * API XBRL-PGC2007 is a set of packages for the treatment of instances XBRL * (eXtensible Business Reporting Language) corresponding to the taxonomy PGC2007. * The General Plan of Accounting 2007 is the legal text that regulates the accounting of * the companies in Spain. * * This program is part of the API XBRL-PGC2007. * * Copyright (C) 2009 INTECO (Instituto Nacional de Tecnolog?as de la * Comunicaci?n, S.A.) * * Authors: Members of Software Quality Department inside INTECO * * E-mail: difusioncalidad@inteco.es * * This program is free software; you can redistribute it and/or modify it under the terms of * the GNU Lesser General Public License as published by the Free Software Foundation; * either version 3 of the License, or (at your opinion) any later version. * * This program is distributed in the hope that it will be useful, but WITHOUT ANY * WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public * License for more details. * * You should have received a copy of the GNU Lesser General Public License along * with this program. If not, see http://www.gnu.org/licenses/ */ import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.TimeZone; public class Main { /** * Obtiene la fecha actual * @return * fecha actual */ public static final java.util.Date getCurrentDate() { java.util.Date now = new java.util.Date(); DateFormat ISO8601Local = new SimpleDateFormat( "yyyy-MM-dd'T'HH:mm:ss"); TimeZone timeZone = TimeZone.getDefault(); ISO8601Local.setTimeZone(timeZone); return now; } }