Java Date Format ISO getIsoDateFormat()

Here you can find the source of getIsoDateFormat()

Description

get Iso Date Format

License

Open Source License

Declaration

public static DateFormat getIsoDateFormat() 

Method Source Code

//package com.java2s;
/*//  ww  w  .j a va2  s  .com
 * JasperReports - Free Java Reporting Library.
 * Copyright (C) 2001 - 2014 TIBCO Software Inc. All rights reserved.
 * http://www.jaspersoft.com
 *
 * Unless you have purchased a commercial license agreement from Jaspersoft,
 * the following license terms apply:
 *
 * This program is part of JasperReports.
 *
 * JasperReports 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 option) any later version.
 *
 * JasperReports 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 JasperReports. If not, see <http://www.gnu.org/licenses/>.
 */

import java.text.DateFormat;
import java.text.SimpleDateFormat;

public class Main {
    public static final String ISO_DATE_PATTERN = "yyyy-MM-dd'T'HH:mm:ss";

    public static DateFormat getIsoDateFormat() {
        return new SimpleDateFormat(ISO_DATE_PATTERN);
    }
}

Related

  1. getISO8601UTCString(Date d)
  2. getISODate()
  3. getISODate()
  4. getISODate(int i)
  5. getIsoDateFormat()
  6. getIsoDateFormater()
  7. getISODateFormatterShort()
  8. getISODateStr(Date date)
  9. getISODateStringFormat(Date ts)